1 [% USE HTML %][% USE JavaScript %]<body onload="on_load();">
3 <script type="text/javascript">
5 warehouses = new Array();
6 warehouses[0] = new Array();
7 warehouses[0]['id'] = "0";
8 warehouses[0]['bins'] = new Array();
9 warehouses[0]['bins'][0] = new Array();
10 warehouses[0]['bins'][0]['description'] = "---";
11 warehouses[0]['bins'][0]['id'] = "";
12 [%- USE WAREHOUSES_it = Iterator(WAREHOUSES) %][%- FOREACH warehouse = WAREHOUSES_it %]
13 warehouses[[% WAREHOUSES_it.count %]] = new Array();
14 warehouses[[% WAREHOUSES_it.count %]]['id'] = [% warehouse.id %];
15 warehouses[[% WAREHOUSES_it.count %]]['bins'] = new Array();
16 warehouses[[% WAREHOUSES_it.count %]]['bins'][0] = new Array();
17 warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['description'] = "---";
18 warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['id'] = "";
19 [% USE BINS_it = Iterator(warehouse.BINS) %][% FOREACH bin = BINS_it %]
20 warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]] = new Array();
21 warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['description'] = "[% JavaScript.escape(bin.description) %]";
22 warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['id'] = [% bin.id %];
26 function warehouse_selected(warehouse_id, bin_id) {
27 var control = document.getElementById("bin_id");
29 for (var i = control.options.length - 1; i >= 0; i--) {
30 control.options[i] = null;
33 var warehouse_index = 0;
35 for (i = 0; i < warehouses.length; i++)
36 if (warehouses[i]['id'] == warehouse_id) {
41 var warehouse = warehouses[warehouse_index];
44 for (i = 0; i < warehouse['bins'].length; i++)
45 if (warehouse['bins'][i]['id'] == bin_id) {
50 for (i = 0; i < warehouse['bins'].length; i++) {
51 control.options[i] = new Option(warehouse['bins'][i]['description'], warehouse['bins'][i]['id']);
55 control.options[bin_index].selected = true;
59 warehouse_selected(0, 0);
60 document.Form.partnumber.focus();
65 <div class="listtop">Bericht über eingelagerte Waren</div>
67 <form method="post" name="Form" action="wh.pl">
69 <input type="hidden" name="nextsub" value="generate_report">
74 <th class="listheading" align="left" valign="top" colspan="6" nowrap>Filter</th>
81 <th align="right" nowrap>Lager:</th>
83 <select name="warehouse_id" id="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)">
84 <option value="">---</option>
85 [%- FOREACH warehouse = WAREHOUSES %]
86 <option value="[% HTML.escape(warehouse.id) %]">[% warehouse.description %]</option>
92 <th align="right" nowrap>Lagerplatz:</th>
93 <td><select name="bin_id" id="bin_id"></select></td>
96 <th align="right" nowrap>Artikelnummer:</th>
97 <td><input name="partnumber" size=20></td>
100 <th align="right" nowrap>Artikelbeschreibung:</th>
101 <td><input name="description" size=40></td>
104 <th align="right" nowrap>Chargennummer:</th>
105 <td><input name="chargenumber" size=40></td>
107 [% IF conf_show_best_before %]
109 <th align="right" nowrap>Mindesthaltbarkeit:</th>
111 <input name="bestbefore" id="bestbefore" size="11" title="[% myconfig_dateformat %]">
112 <input type="button" name="b_bestbefore" id="bestbefore_trigger" value="?">
117 <th align="right" nowrap>Lagerbestand:</th>
119 <select name="qty_op">
120 <option value="dontcare">---</option>
121 <option value="atleast">Mindestens</option>
122 <option value="atmost">Höchstens</option>
123 <option value="exact">Genau</option>
126 <select name="qty_unit">
127 [%- FOREACH unit = UNITS %]<option>[% unit.name %]</option>[% END %]
135 <tr height="5"><td> </td></tr>
138 <th class="listheading" align="left" valign="top" colspan="6" nowrap>In Bericht aufnehmen</th>
143 <input name="l_partdescription" type="hidden" value="Y">
144 <input name="l_qty" type="hidden" value="Y">
148 <td align="right"><input name="l_warehousedescription" id="l_warehousedescription" class="checkbox" type="checkbox" value="Y" checked></td>
149 <td nowrap><label for="l_warehousedescription">Lager</label></td>
150 <td align="right"><input name="l_bindescription" id="l_bindescription" class="checkbox" type="checkbox" value="Y" checked></td>
151 <td nowrap><label for="l_bindescription">Lagerplatz</label></td>
155 <td align="right"><input name="l_partnumber" id="l_partnumber" class="checkbox" type="checkbox" value="Y" checked></td>
156 <td nowrap><label for="l_partnumber">Artikelnummer</label></td>
157 <td align="right"><input name="l_chargenumber" id="l_chargenumber" class="checkbox" type="checkbox" value="Y" checked></td>
158 <td nowrap><label for="l_chargenumber">Chargennummer</label></td>
159 [% IF conf_show_best_before %]
160 <td align="right"><input name="l_bestbefore" id="l_bestbefore" class="checkbox" type="checkbox" value="Y" checked></td>
161 <td nowrap><label for="l_bestbefore">Mindesthaltbarkeit</label></td>
165 <tr><td colspan="4"><hr noshade height="1"></td></tr>
168 <td align="right"><input name="subtotal" id="subtotal" class="checkbox" type="checkbox" value="Y"></td>
169 <td nowrap><label for="subtotal">Zwischensumme</label></td>
170 <td align="right"><input name="include_empty_bins" id="include_empty_bins" class="checkbox" type="checkbox" value="Y"></td>
171 <td nowrap><label for="include_empty_bins">Leere Lagerplätze anzeigen</label></td>
175 <td align="right"><input name="l_stock_value" id="l_stock_value" class="checkbox" type="checkbox" value="Y"></td>
176 <td nowrap><label for="l_stock_value">Bestandswert</label></td>
186 <input type="submit" class="submit" name="action" value="Weiter">
190 [% IF conf_show_best_before %]
191 <script type="text/javascript">
194 inputField : "bestbefore",
195 ifFormat :"[% myconfig_jsc_dateformat %]",
197 button : "bestbefore_trigger"