Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / wh / removal_parts_selection.html
1 [%- USE T8 %]
2 [%- USE HTML %][%- USE JavaScript %]
3 <h1>[% title %]</h1>
4
5  <form method="post" action="wh.pl" id="form">
6
7   <input type="hidden" name="warehouse_id" value="[% HTML.escape(warehouse_id) %]">
8
9   <p>[% 'Removal from warehouse' | $T8 %]: [% warehouse_description %]</p>
10
11   <p>
12    <table>
13     <tr>
14      <td>[% 'Select type of removal' | $T8 %]:</td>
15      <td>
16       <select name="transfer_type_id">
17        [%- FOREACH type = TRANSFER_TYPES %]<option value="[% HTML.escape(type.id) %]">[% HTML.escape(type.description) %]</option>[% END %]
18       </select>
19      </td>
20     </tr>
21
22     <tr>
23      <td>[% 'Optional comment' | $T8 %]:</td>
24      <td><input name="comment" size="60"></td>
25     </tr>
26    </table>
27   </p>
28
29   <p>
30    <table>
31     <tr>
32      <th class="listheading">[% 'Bin' | $T8 %]</th>
33      <th class="listheading">[% 'Part Number' | $T8 %]</th>
34      <th class="listheading">[% 'Part Description' | $T8 %]</th>
35      <th class="listheading">[% 'Charge Number' | $T8 %]</th>
36      [% IF INSTANCE_CONF.get_show_bestbefore %]
37      <th class="listheading">[% 'Best Before' | $T8 %]</th>
38      [% END %]
39      <th class="listheading">[% 'EAN' | $T8 %]</th>
40      <th class="listheading">[% 'Available qty' | $T8 %]</th>
41      <th class="listheading">[% 'Removal qty' | $T8 %]</th>
42     </tr>
43
44     [% FOREACH row = CONTENTS %]
45     <tr class="listrow[% loop.count % 2 %]">
46      <input type="hidden" name="src_bin_id_[% loop.count %]" value="[% HTML.escape(row.binid) %]">
47      <input type="hidden" name="parts_id_[% loop.count %]" value="[% HTML.escape(row.parts_id) %]">
48      <input type="hidden" name="partnumber_[% loop.count %]" value="[% HTML.escape(row.partnumber) %]">
49      <input type="hidden" name="partdescription_[% loop.count %]" value="[% HTML.escape(row.partdescription) %]">
50      <input type="hidden" name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]">
51      [% IF INSTANCE_CONF.get_show_bestbefore %]
52      <input type="hidden" name="bestbefore_[% loop.count %]" value="[% HTML.escape(row.bestbefore) %]">
53      [% END %]
54      <input type="hidden" name="ean_[% loop.count %]" value="[% HTML.escape(row.ean) %]">
55      <td>[% HTML.escape(row.bindescription) %]</td>
56      <td>[% HTML.escape(row.partnumber) %]</td>
57      <td>[% HTML.escape(row.partdescription) %]</td>
58      <td>[% HTML.escape(row.chargenumber) %]</td>
59      [% IF INSTANCE_CONF.get_show_bestbefore %]
60      <td>[% HTML.escape(row.bestbefore) %]</td>
61      [% END %]
62      <td>[% HTML.escape(row.ean) %]</td>
63      <td>[% HTML.escape(row.qty) %]</td>
64      <td>
65       <input name="qty_[% loop.count %]">
66       <select name="unit_[% loop.count %]">
67        [% FOREACH unit = row.UNITS %]<option[% IF unit.selected %] selected[% END %]>[% HTML.escape(unit.name) %]</option>[% END %]
68       </select>
69      </td>
70     </tr>
71
72     [% END %]
73
74     <input type="hidden" name="rowcount" value="[% CONTENTS.size %]">
75
76     <tr><td colspan="7"><hr size="3" noshade></td></tr>
77
78    </table>
79   </p>
80  </form>