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