2 [% USE HTML %][% USE LxERP %]<body>
5 [%- SET RO = ' readonly' %]
8 <style type="text/css">
10 background-color: #ffc9c9;
14 <form method="post" action="do.pl" name="Form">
16 <div class="listtop">[% title %]</div>
18 [%- IF ERRORS && ERRORS.size %]
19 <p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p>
25 <td>[% 'Part Number' | $T8 %]</td>
26 <td>[% HTML.escape(PART_INFO.partnumber) %]</td>
29 <td>[% 'Description' | $T8 %]</td>
30 <td>[% HTML.escape(PART_INFO.description) %]</td>
33 <td>[% 'Qty according to delivery order' | $T8 %]</td>
34 <td>[% HTML.escape(do_qty) %] [% HTML.escape(do_unit) %]</td>
39 [%- UNLESS WHCONTENTS.size %]
40 <p>[% 'There are no items in stock.' | $T8 %]</p>
42 <p><button type="button" onclick="window.close()">[% 'Close Window' | $T8 %]</button></p>
46 <input type="hidden" name="nextsub" value="set_stock_out">
47 <input type="hidden" name="rowcount" value="[% HTML.escape(WHCONTENTS.size) %]">
48 <input type="hidden" name="in_out" value="out">
49 <input type="hidden" name="parts_id" value="[% HTML.escape(parts_id) %]">
50 <input type="hidden" name="partunit" value="[% HTML.escape(PART_INFO.unit) %]">
51 <input type="hidden" name="do_qty" value="[% HTML.escape(do_qty) %]">
52 <input type="hidden" name="do_unit" value="[% HTML.escape(do_unit) %]">
53 <input type="hidden" name="row" value="[% HTML.escape(row) %]">
54 <input type="hidden" name="closed" value="[% HTML.escape(closed) %]">
55 <input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]">
59 <tr class="listheading">
60 <th class="listheading"> </th>
61 <th class="listheading">[% 'Warehouse' | $T8 %]</th>
62 <th class="listheading">[% 'Bin' | $T8 %]</th>
63 <th class="listheading">[% 'Charge Number' | $T8 %]</th>
64 [% IF conf_show_best_before %]
65 <th class="listheading">[% 'Best Before' | $T8 %]</th>
67 [%- UNLESS delivered %]
68 <th align="right" class="listheading">[% 'Available qty' | $T8 %]</th>
70 <th align="right" class="listheading">[% 'Qty' | $T8 %]</th>
71 <th align="right" class="listheading">[% 'Unit' | $T8 %]</th>
74 [%- FOREACH row = WHCONTENTS %]
75 <tr [% IF row.stock_error %] class="tr_error"[% ELSE %]class="listrow[% loop.count % 2 %]"[% END %]>
76 <td>[% loop.count %]</td>
77 <td>[% HTML.escape(row.warehousedescription) %]</td>
78 <td>[% HTML.escape(row.bindescription) %]</td>
79 <td>[% HTML.escape(row.chargenumber) %]</td>
80 [% IF conf_show_best_before %]
81 <td>[% HTML.escape(row.bestbefore) %]</td>
85 <td>[% HTML.escape(LxERP.format_amount(row.stock_qty)) %]</td>
86 <td>[% HTML.escape(row.stock_unit) %]</td>
90 <td>[% HTML.escape(row.available_qty) %]</td>
91 <td><input name="qty_[% loop.count %]" style="text-align: right;" size="12"
92 [%- IF row.stock_qty %]
93 value="[% HTML.escape(LxERP.format_amount(row.stock_qty)) %]"
94 [%- ELSIF ((WHCONTENTS.size == 1) && (!row.stock_qty)) %]
95 value="[% HTML.escape(do_qty) %]"
99 <select name="unit_[% loop.count %]">
100 [%- FOREACH unit = UNITS %]
101 <option[% IF unit.name == row.stock_unit %] selected[% END %]>[% HTML.escape(unit.name) %]</option>
109 <input type="hidden" name="warehouse_id_[% loop.count %]" value="[% HTML.escape(row.warehouse_id) %]">
110 <input type="hidden" name="bin_id_[% loop.count %]" value="[% HTML.escape(row.bin_id) %]">
111 <input type="hidden" name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]">
112 [% IF conf_show_best_before %]
113 <input type="hidden" name="bestbefore_[% loop.count %]" value="[% HTML.escape(row.bestbefore) %]">
119 <hr size="3" noshade>
123 <button type="button" class="submit" name="action" onclick="window.close()">[% 'Close Window' | $T8 %]</button>
125 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">