1 [% USE HTML %][% USE LxERP %]<body>
4 [%- SET RO = ' readonly' %]
7 <style type="text/css">
9 background-color: #ffc9c9;
13 <form method="post" action="do.pl" name="Form">
15 <div class="listtop">[% title %]</div>
17 [%- IF ERRORS && ERRORS.size %]
18 <p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p>
24 <td><translate>Part Number</translate></td>
25 <td>[% HTML.escape(PART_INFO.partnumber) %]</td>
28 <td><translate>Description</translate></td>
29 <td>[% HTML.escape(PART_INFO.description) %]</td>
32 <td><translate>Qty according to delivery order</translate></td>
33 <td>[% HTML.escape(do_qty) %] [% HTML.escape(do_unit) %]</td>
38 [%- UNLESS WHCONTENTS.size %]
39 <p><translate>There are no items in stock.</translate></p>
41 <p><button type="button" onclick="window.close()"><translate>Close Window</translate></button></p>
45 <input type="hidden" name="nextsub" value="set_stock_out">
46 <input type="hidden" name="rowcount" value="[% HTML.escape(WHCONTENTS.size) %]">
47 <input type="hidden" name="in_out" value="out">
48 <input type="hidden" name="parts_id" value="[% HTML.escape(parts_id) %]">
49 <input type="hidden" name="partunit" value="[% HTML.escape(PART_INFO.unit) %]">
50 <input type="hidden" name="do_qty" value="[% HTML.escape(do_qty) %]">
51 <input type="hidden" name="do_unit" value="[% HTML.escape(do_unit) %]">
52 <input type="hidden" name="row" value="[% HTML.escape(row) %]">
53 <input type="hidden" name="closed" value="[% HTML.escape(closed) %]">
54 <input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]">
58 <tr class="listheading">
59 <th class="listheading"> </th>
60 <th class="listheading"><translate>Warehouse</translate></th>
61 <th class="listheading"><translate>Bin</translate></th>
62 <th class="listheading"><translate>Charge Number</translate></th>
63 [%- UNLESS delivered %]
64 <th align="right" class="listheading"><translate>Available qty</translate></th>
66 <th align="right" class="listheading"><translate>Qty</translate></th>
67 <th align="right" class="listheading"><translate>Unit</translate></th>
70 [%- FOREACH row = WHCONTENTS %]
71 <tr [% IF row.stock_error %] class="tr_error"[% ELSE %]class="listrow[% loop.count % 2 %]"[% END %]>
72 <td>[% loop.count %]</td>
73 <td>[% HTML.escape(row.warehousedescription) %]</td>
74 <td>[% HTML.escape(row.bindescription) %]</td>
75 <td>[% HTML.escape(row.chargenumber) %]</td>
79 <td>[% HTML.escape(LxERP.format_amount(row.stock_qty)) %]</td>
80 <td>[% HTML.escape(row.stock_unit) %]</td>
84 <td>[% HTML.escape(row.available_qty) %]</td>
85 <td><input name="qty_[% loop.count %]" style="text-align: right;" size="12"
86 value="[% IF row.stock_qty %][% HTML.escape(LxERP.format_amount(row.stock_qty)) %][% END %]"></td>
88 <select name="unit_[% loop.count %]">
89 [%- FOREACH unit = UNITS %]
90 <option[% IF unit.name == row.stock_unit %] selected[% END %]>[% HTML.escape(unit.name) %]</option>
98 <input type="hidden" name="warehouse_id_[% loop.count %]" value="[% HTML.escape(row.warehouse_id) %]">
99 <input type="hidden" name="bin_id_[% loop.count %]" value="[% HTML.escape(row.bin_id) %]">
100 <input type="hidden" name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]">
105 <hr size="3" noshade>
109 <button type="button" class="submit" name="action" onclick="window.close()"><translate>Close Window</translate></button>
111 <input class="submit" type="submit" name="action" value="<translate>Continue</translate>">