Merge branch 'master' of ssh://git-mbunkus@lx-office.linet-services.de/~/lx-office-erp
[kivitendo-erp.git] / templates / webpages / wh / transfer_parts_selection_de.html
1 [% USE HTML %][% USE JavaScript %]<body onload="on_load();">
2
3  <script type="text/javascript">
4   <!--
5       warehouses = new Array();
6       [% USE WAREHOUSES_it = Iterator(WAREHOUSES) %][% FOREACH wh = WAREHOUSES_it %]
7       warehouses[[% WAREHOUSES_it.count - 1 %]] = new Array();
8       [% USE BINS_it = Iterator(wh.BINS) %][% FOREACH bin = BINS_it %]warehouses[[% WAREHOUSES_it.count - 1 %]][[% BINS_it.count - 1 %]] = ["[% JavaScript.escape(bin.description) %]", "[% JavaScript.escape(bin.id) %]"];
9       [% END %]
10       [% END %]
11
12       function warehouse_selected(row, index) {
13         var cname = "dst_bin_id_" + row;
14         var control = document.getElementById(cname);
15
16         for (var i = control.options.length - 1; i >= 0; i--) {
17           control.options[i] = null;
18         }
19
20         for (i = 0; i < warehouses[index].length; i++) {
21           control.options[i] = new Option(warehouses[index][i][0], warehouses[index][i][1]);
22         }
23
24         control.options[0].selected = true;
25       }
26
27       function on_load() {
28         [% FOREACH row = CONTENTS %]
29         warehouse_selected([% loop.count %], [% initial_warehouse_idx %]);
30         [% END %]
31       }
32     -->
33  </script>
34
35  <form method="post" action="wh.pl">
36
37   <input type="hidden" name="nextsub" value="transfer_parts">
38   <input type="hidden" name="warehouse_id" value="[% HTML.escape(warehouse_id) %]">
39
40   <div class="listtop">[% title %]</div>
41
42   <p>Quelllager: [% warehouse_description %]</p>
43
44   <p>
45    <table>
46     <tr>
47      <td>Grund der Umlagerung ausw&auml;hlen:</td>
48      <td>
49       <select name="transfer_type_id">
50        [%- FOREACH type = TRANSFER_TYPES %]<option value="[% HTML.escape(type.id) %]">[% type.description %]</option>[% END %]
51       </select>
52      </td>
53     </tr>
54
55     <tr>
56      <td>Optionaler Kommentar:</td>
57      <td><input name="comment" size="20"></td>
58     </tr>
59    </table>
60   </p>
61
62   <p>
63    <table>
64     <tr>
65      <th class="listheading">Quelllagerplatz</th>
66      <th class="listheading">Artikelnummer</th>
67      <th class="listheading">Artikelbeschreibung</th>
68      <th class="listheading">Chargennummer</th>
69      <th class="listheading">EAN</th>
70      <th class="listheading">Lagerbestand</th>
71      <th class="listheading" colspan="2">Umlagermenge</th>
72      <th class="listheading" colspan="2">Ziellager und -lagerplatz</th>
73     </tr>
74
75     [% FOREACH row = CONTENTS %]
76     <tr class="listrow[% loop.count % 2 %]">
77      <input type="hidden" name="src_bin_id_[% loop.count %]" value="[% HTML.escape(row.binid) %]">
78      <input type="hidden" name="parts_id_[% loop.count %]" value="[% HTML.escape(row.parts_id) %]">
79      <input type="hidden" name="partnumber_[% loop.count %]" value="[% HTML.escape(row.partnumber) %]">
80      <input type="hidden" name="partdescription_[% loop.count %]" value="[% HTML.escape(row.partdescription) %]">
81      <input type="hidden" name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]">
82      <input type="hidden" name="ean_[% loop.count %]" value="[% HTML.escape(row.ean) %]">
83      <td>[% HTML.escape(row.bindescription) %]</td>
84      <td>[% HTML.escape(row.partnumber) %]</td>
85      <td>[% HTML.escape(row.partdescription) %]</td>
86      <td>[% HTML.escape(row.chargenumber) %]</td>
87      <td>[% HTML.escape(row.ean) %]</td>
88      <td>[% HTML.escape(row.qty) %]</td>
89      <td><input name="qty_[% loop.count %]" size="8" style="text-align: right"></td>
90      <td>
91       <select name="unit_[% loop.count %]">
92        [% FOREACH unit = row.UNITS %]<option[% IF unit.selected %] selected[% END %]>[% HTML.escape(unit.name) %]</option>[% END %]
93       </select>
94      </td>
95
96      <td>
97       <select name="dst_warehouse_id_[% loop.count %]" onchange="warehouse_selected([% loop.count %], this.selectedIndex)">
98        [% FOREACH wh = WAREHOUSES %]<option value="[% HTML.escape(wh.id) %]"[% IF wh.selected %] selected[% END %]>[% HTML.escape(wh.description) %]</option>[% END %]
99       </select>
100      </td>
101      <td><select id="dst_bin_id_[% loop.count %]" name="dst_bin_id_[% loop.count %]"></select></td>
102     </tr>
103
104     [% END %]
105
106     <input type="hidden" name="rowcount" value="[% CONTENTS.size %]">
107
108    </table>
109   </p>
110
111   <hr size="3" noshade>
112
113   <p>
114    <input type="submit" class="submit" name="action" value="Weiter">
115   </p>
116  </form>
117
118 </body>
119 </html>