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