Revision 21d8fd43
Von Hans Peter Schlaepfer vor mehr als 4 Jahren hinzugefügt
templates/webpages/wh/journal_filter.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[%- USE P %] |
|
4 |
[%- USE HTML %][%- USE JavaScript %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE P %] |
|
4 |
[% USE HTML %] |
|
5 |
[% USE JavaScript %] |
|
6 |
|
|
5 | 7 |
<h1>[% 'Report about warehouse transactions' | $T8 %]</h1> |
6 | 8 |
|
7 |
<script type="text/javascript">
|
|
8 |
<!--
|
|
9 |
warehouses = new Array();
|
|
10 |
warehouses[0] = new Array();
|
|
11 |
warehouses[0]['id'] = "0";
|
|
12 |
warehouses[0]['bins'] = new Array();
|
|
13 |
warehouses[0]['bins'][0] = new Array();
|
|
14 |
warehouses[0]['bins'][0]['description'] = "---";
|
|
15 |
warehouses[0]['bins'][0]['id'] = "";
|
|
16 |
[%- USE WAREHOUSES_it = Iterator(WAREHOUSES) %][%- FOREACH warehouse = WAREHOUSES_it %]
|
|
9 |
<script type="text/javascript"><!--
|
|
10 |
warehouses = new Array();
|
|
11 |
warehouses[0] = new Array();
|
|
12 |
warehouses[0]['id'] = "0";
|
|
13 |
warehouses[0]['bins'] = new Array();
|
|
14 |
warehouses[0]['bins'][0] = new Array();
|
|
15 |
warehouses[0]['bins'][0]['description'] = "---";
|
|
16 |
warehouses[0]['bins'][0]['id'] = "";
|
|
17 |
[% USE WAREHOUSES_it = Iterator(WAREHOUSES) %]
|
|
18 |
[% FOREACH warehouse = WAREHOUSES_it %]
|
|
17 | 19 |
warehouses[[% WAREHOUSES_it.count %]] = new Array(); |
18 | 20 |
warehouses[[% WAREHOUSES_it.count %]]['id'] = [% warehouse.id %]; |
19 | 21 |
warehouses[[% WAREHOUSES_it.count %]]['bins'] = new Array(); |
20 | 22 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][0] = new Array(); |
21 | 23 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['description'] = "---"; |
22 | 24 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['id'] = ""; |
23 |
[% USE BINS_it = Iterator(warehouse.BINS) %][% FOREACH bin = BINS_it %]
|
|
24 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]] = new Array();
|
|
25 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['description'] = "[% JavaScript.escape(bin.description) %]";
|
|
26 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['id'] = [% bin.id %];
|
|
27 |
[% END %]
|
|
25 |
[% USE BINS_it = Iterator(warehouse.BINS) %] |
|
26 |
[% FOREACH bin = BINS_it %]
|
|
27 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]] = new Array();
|
|
28 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['description'] = "[% JavaScript.escape(bin.description) %]";
|
|
29 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['id'] = [% bin.id %];
|
|
28 | 30 |
[% END %] |
31 |
[% END %] |
|
29 | 32 |
|
30 |
function warehouse_selected(warehouse_id, bin_id) { |
|
31 |
var control = document.getElementById("bin_id"); |
|
32 |
|
|
33 |
for (var i = control.options.length - 1; i >= 0; i--) { |
|
34 |
control.options[i] = null; |
|
35 |
} |
|
33 |
function warehouse_selected(warehouse_id, bin_id) { |
|
34 |
var control = document.getElementById("bin_id"); |
|
36 | 35 |
|
37 |
var warehouse_index = 0; |
|
36 |
for (var i = control.options.length - 1; i >= 0; i--) { |
|
37 |
control.options[i] = null; |
|
38 |
} |
|
38 | 39 |
|
39 |
for (i = 0; i < warehouses.length; i++) |
|
40 |
if (warehouses[i]['id'] == warehouse_id) { |
|
41 |
warehouse_index = i; |
|
42 |
break; |
|
43 |
} |
|
40 |
var warehouse_index = 0; |
|
44 | 41 |
|
45 |
var warehouse = warehouses[warehouse_index]; |
|
46 |
var bin_index = 0; |
|
42 |
for (i = 0; i < warehouses.length; i++) |
|
43 |
if (warehouses[i]['id'] == warehouse_id) { |
|
44 |
warehouse_index = i; |
|
45 |
break; |
|
46 |
} |
|
47 | 47 |
|
48 |
for (i = 0; i < warehouse['bins'].length; i++) |
|
49 |
if (warehouse['bins'][i]['id'] == bin_id) { |
|
50 |
bin_index = i; |
|
51 |
break; |
|
52 |
} |
|
48 |
var warehouse = warehouses[warehouse_index]; |
|
49 |
var bin_index = 0; |
|
53 | 50 |
|
54 |
for (i = 0; i < warehouse['bins'].length; i++) { |
|
55 |
control.options[i] = new Option(warehouse['bins'][i]['description'], warehouse['bins'][i]['id']); |
|
51 |
for (i = 0; i < warehouse['bins'].length; i++) |
|
52 |
if (warehouse['bins'][i]['id'] == bin_id) { |
|
53 |
bin_index = i; |
|
54 |
break; |
|
56 | 55 |
} |
57 | 56 |
|
58 |
|
|
59 |
control.options[bin_index].selected = true;
|
|
57 |
for (i = 0; i < warehouse['bins'].length; i++) { |
|
58 |
control.options[i] = new Option(warehouse['bins'][i]['description'], warehouse['bins'][i]['id']);
|
|
60 | 59 |
} |
61 | 60 |
|
62 |
$(function() { |
|
63 |
warehouse_selected(0, 0); |
|
64 |
document.Form.partnumber.focus(); |
|
65 |
}) |
|
66 |
--> |
|
67 |
</script> |
|
68 | 61 |
|
69 |
<form method="post" name="Form" action="wh.pl" id="form"> |
|
62 |
control.options[bin_index].selected = true; |
|
63 |
} |
|
70 | 64 |
|
71 |
<table> |
|
72 |
<tr> |
|
73 |
<th class="listheading" align="left" valign="top" colspan="6" nowrap>[% 'Filter' | $T8 %]</th> |
|
74 |
</tr> |
|
65 |
$(function() { |
|
66 |
warehouse_selected(0, 0); |
|
67 |
document.Form.partnumber.focus(); |
|
68 |
}) |
|
69 |
--></script> |
|
75 | 70 |
|
71 |
<form method="post" name="Form" action="wh.pl" id="form"> |
|
72 |
<div class="wrapper"> |
|
73 |
|
|
74 |
<table class="tbl-horizontal"> |
|
75 |
<tbody> |
|
76 | 76 |
<tr> |
77 |
<td> |
|
78 |
<table> |
|
79 |
<tr> |
|
80 |
<th align="right" nowrap>[% 'Warehouse' | $T8 %]:</th> |
|
81 |
<td> |
|
82 |
<select name="warehouse_id" id="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)"> |
|
83 |
<option value="">---</option> |
|
84 |
[%- FOREACH warehouse = WAREHOUSES %] |
|
77 |
<th>[% 'Warehouse' | $T8 %]:</th> |
|
78 |
<td> |
|
79 |
<select name="warehouse_id" id="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)" class="wi-normal"> |
|
80 |
<option value="">---</option> |
|
81 |
[% FOREACH warehouse = WAREHOUSES %] |
|
85 | 82 |
<option value="[% HTML.escape(warehouse.id) %]">[% warehouse.description %]</option> |
86 |
[%- END %] |
|
87 |
</select> |
|
88 |
</td> |
|
89 |
</tr> |
|
90 |
<tr> |
|
91 |
<th align="right" nowrap>[% 'Bin' | $T8 %]:</th> |
|
92 |
<td><select name="bin_id" id="bin_id"></select></td> |
|
93 |
</tr> |
|
94 |
<tr> |
|
95 |
<th align="right" nowrap>[% 'Part Number' | $T8 %]:</th> |
|
96 |
<td><input name="partnumber" id="partnumber" size=20></td> |
|
97 |
</tr> |
|
98 |
<tr> |
|
99 |
<th align="right" nowrap>[% 'Parts Classification' | $T8 %]:</th> |
|
100 |
<td>[% P.part.select_classification('classification_id') %]</td> |
|
101 |
</tr> |
|
102 |
<tr> |
|
103 |
<th align="right" nowrap>[% 'Part Description' | $T8 %]:</th> |
|
104 |
<td><input name="description" size=40></td> |
|
105 |
</tr> |
|
106 |
<tr> |
|
107 |
<th align="right" nowrap>[% 'Charge Number' | $T8 %]:</th> |
|
108 |
<td><input name="chargenumber" size=40></td> |
|
109 |
</tr> |
|
110 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
111 |
<tr> |
|
112 |
<th align="right" nowrap>[% 'Best Before' | $T8 %]:</th> |
|
113 |
<td> |
|
114 |
[% L.date_tag('bestbefore') %] |
|
115 |
</td> |
|
116 |
</tr> |
|
117 |
[% END %] |
|
118 |
<tr> |
|
119 |
<th align="right" nowrap>[% 'Transfer Quantity' | $T8 %]:</th> |
|
120 |
<td> |
|
121 |
<select name="qty_op"> |
|
83 |
[% END %] |
|
84 |
</select> |
|
85 |
</td> |
|
86 |
</tr> |
|
87 |
<tr> |
|
88 |
<th>[% 'Bin' | $T8 %]:</th> |
|
89 |
<td> |
|
90 |
<select name="bin_id" id="bin_id" class="wi-normal"> |
|
91 |
</select> |
|
92 |
</td> |
|
93 |
</tr> |
|
94 |
<tr> |
|
95 |
<th>[% 'Part Number' | $T8 %]:</th> |
|
96 |
<td><input type="text" name="partnumber" id="partnumber" class="wi-normal"> |
|
97 |
</td> |
|
98 |
</tr> |
|
99 |
<tr> |
|
100 |
<th>[% 'Parts Classification' | $T8 %]:</th> |
|
101 |
<td>[% P.part.select_classification('classification_id', class='wi-normal') %]</td> |
|
102 |
</tr> |
|
103 |
<tr> |
|
104 |
<th>[% 'Part Description' | $T8 %]:</th> |
|
105 |
<td><input type="text" name="description" class="wi-normal"> |
|
106 |
</td> |
|
107 |
</tr> |
|
108 |
<tr> |
|
109 |
<th>[% 'Charge Number' | $T8 %]:</th> |
|
110 |
<td><input type="text" name="chargenumber" class="wi-normal"> |
|
111 |
</td> |
|
112 |
</tr> |
|
113 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
114 |
<tr> |
|
115 |
<th>[% 'Best Before' | $T8 %]:</th> |
|
116 |
<td> [% L.date_tag('bestbefore') %] </td> |
|
117 |
</tr> |
|
118 |
[% END %] |
|
119 |
<tr> |
|
120 |
<th>[% 'Transfer Quantity' | $T8 %]:</th> |
|
121 |
<td> |
|
122 |
<select name="qty_op" class="wi-normal"> |
|
122 | 123 |
<option value="dontcare">---</option> |
123 | 124 |
<option value="atleast">[% 'At least' | $T8 %]</option> |
124 | 125 |
<option value="atmost">[% 'At most' | $T8 %]</option> |
125 | 126 |
<option value="exact">[% 'Exact' | $T8 %]</option> |
126 |
</select> |
|
127 |
<input name="qty"> |
|
128 |
<select name="qty_unit"> |
|
129 |
[%- FOREACH unit = UNITS %]<option>[% unit.name %]</option>[% END %] |
|
130 |
</select> |
|
131 |
</td> |
|
132 |
</tr> |
|
133 |
<tr> |
|
134 |
<th align="right" nowrap>[% 'From Date' | $T8 %]</th> |
|
135 |
<td> |
|
136 |
[% L.date_tag('fromdate') %] |
|
137 |
</td> |
|
138 |
</tr> |
|
139 |
<tr> |
|
140 |
<th align="right">[% 'To Date' | $T8 %]</th> |
|
141 |
<td> |
|
142 |
[% L.date_tag('todate') %] |
|
143 |
</td> |
|
144 |
</tr> |
|
145 |
</table> |
|
146 |
</td> |
|
127 |
</select> |
|
128 |
<input name="qty" type="text" class="wi-verysmall"> |
|
129 |
<select name="qty_unit" class="wi-small"> |
|
130 |
[% FOREACH unit = UNITS %] |
|
131 |
<option>[% unit.name %]</option> |
|
132 |
[% END %] |
|
133 |
</select> |
|
134 |
</td> |
|
147 | 135 |
</tr> |
148 |
|
|
149 |
<tr height="5"><td> </td></tr> |
|
150 |
|
|
151 | 136 |
<tr> |
152 |
<th class="listheading" align="left" valign="top" colspan="6" nowrap>[% 'Include in Report' | $T8 %]</th> |
|
137 |
<th>[% 'From Date' | $T8 %]</th> |
|
138 |
<td> <span class="wi-date">[% L.date_tag('fromdate') %]</span> </td> |
|
153 | 139 |
</tr> |
154 |
|
|
155 | 140 |
<tr> |
156 |
<td> |
|
157 |
<table> |
|
158 |
<tr> |
|
159 |
<td><input name="l_partdescription" id="l_partdescription" class="checkbox" type="hidden" value="Y" checked></td> |
|
160 |
<td nowrap><label for="l_partdescription">[% 'Part Description' | $T8 %]</label></td> |
|
161 |
<td><input name="l_qty" id="l_qty" class="checkbox" type="hidden" value="Y" checked></td> |
|
162 |
<td nowrap><label for="l_qty">[% 'Quantity' | $T8 %]</label></td> |
|
163 |
</tr> |
|
164 |
<tr> |
|
165 |
<td align="right"><input name="l_date" id="l_date" class="checkbox" type="checkbox" value="Y" checked></td> |
|
166 |
<td nowrap><label for="l_date">[% 'Date' | $T8 %]</label></td> |
|
167 |
<td align="right"><input name="l_partnumber" id="l_partnumber" class="checkbox" type="checkbox" value="Y" checked></td> |
|
168 |
<td nowrap><label for="l_partnumber">[% 'Part Number' | $T8 %]</label></td> |
|
169 |
<td align="right"><input name="l_chargenumber" id="l_chargenumber" class="checkbox" type="checkbox" value="Y" checked></td> |
|
170 |
<td nowrap><label for="l_chargenumber">[% 'Charge Number' | $T8 %]</label></td> |
|
171 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
172 |
<td align="right"><input name="l_bestbefore" id="l_bestbefore" class="checkbox" type="checkbox" value="Y" checked></td> |
|
173 |
<td nowrap><label for="l_bestbefore">[% 'Best Before' | $T8 %]</label></td> |
|
174 |
[% END %] |
|
175 |
</tr> |
|
176 |
<tr> |
|
177 |
<td align="right"><input name="l_trans_id" id="l_trans_id" class="checkbox" type="checkbox" value="Y"></td> |
|
178 |
<td nowrap><label for="l_trans_id">[% 'Trans Id' | $T8 %]</label></td> |
|
179 |
<td align="right"><input name="l_trans_type" id="l_trans_type" class="checkbox" type="checkbox" value="Y" checked></td> |
|
180 |
<td nowrap><label for="l_trans_type">[% 'Trans Type' | $T8 %]</label></td> |
|
181 |
<td align="right"><input name="l_comment" id="l_comment" class="checkbox" type="checkbox" value="Y"></td> |
|
182 |
<td nowrap><label for="l_comment">[% 'Comment' | $T8 %]</label></td> |
|
183 |
</tr> |
|
184 |
<tr> |
|
185 |
<td align="right"><input name="l_warehouse_from" id="l_warehouse_from" class="checkbox" type="checkbox" value="Y" checked></td> |
|
186 |
<td nowrap><label for="l_warehouse_from">[% 'Warehouse From' | $T8 %]</label></td> |
|
187 |
<td align="right"><input name="l_bin_from" id="l_bin_from" class="checkbox" type="checkbox" value="Y" checked></td> |
|
188 |
<td nowrap><label for="l_bin_from">[% 'Bin From' | $T8 %]</label></td> |
|
189 |
<td align="right"><input name="l_warehouse_to" id="l_warehouse_to" class="checkbox" type="checkbox" value="Y" checked></td> |
|
190 |
<td nowrap><label for="l_warehouse_to">[% 'Warehouse To' | $T8 %]</label></td> |
|
191 |
<td align="right"><input name="l_bin_to" id="l_bin_to" class="checkbox" type="checkbox" value="Y" checked></td> |
|
192 |
<td nowrap><label for="l_bin_to">[% 'Bin To' | $T8 %]</label></td> |
|
193 |
</tr> |
|
194 |
<tr> |
|
195 |
<td align="right"><input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y"></td> |
|
196 |
<td nowrap><label for="l_employee">[% 'Employee' | $T8 %]</label></td> |
|
197 |
<td align="right"><input name="l_oe_id" id="l_oe_id" class="checkbox" type="checkbox" value="Y"></td> |
|
198 |
<td nowrap><label for="l_oe_id">[% 'Document' | $T8 %]</label></td> |
|
199 |
<td align="right"><input name="l_projectnumber" id="l_projectnumber" class="checkbox" type="checkbox" value="Y" checked></td> |
|
200 |
<td nowrap><label for="l_projectnumber">[% 'Project Number' | $T8 %]</label></td> |
|
201 |
</tr> |
|
202 |
</table> |
|
203 |
</td> |
|
141 |
<th>[% 'To Date' | $T8 %]</th> |
|
142 |
<td> <span class="wi-date">[% L.date_tag('todate') %]</span> </td> |
|
204 | 143 |
</tr> |
205 |
</table> |
|
206 |
</form> |
|
144 |
</tbody> |
|
145 |
</table> |
|
146 |
|
|
147 |
</div><!-- /.wrapper --> |
|
148 |
|
|
149 |
<div class="form-addition control-panel"> |
|
150 |
<h3>[% 'Include in Report' | $T8 %]</h3> |
|
151 |
|
|
152 |
<div class="col list"> |
|
153 |
<h4>[% 'Article data' | $T8 %]</h4> |
|
154 |
<div> |
|
155 |
<input name="l_partdescription" id="l_partdescription" type="checkbox" value="Y" checked> |
|
156 |
<label for="l_partdescription">[% 'Part Description' | $T8 %]</label> |
|
157 |
</div> |
|
158 |
<div> |
|
159 |
<input name="l_partnumber" id="l_partnumber" type="checkbox" value="Y" checked> |
|
160 |
<label for="l_partnumber">[% 'Part Number' | $T8 %]</label> |
|
161 |
</div> |
|
162 |
<div> |
|
163 |
<input name="l_chargenumber" id="l_chargenumber" type="checkbox" value="Y" checked> |
|
164 |
<label for="l_chargenumber">[% 'Charge Number' | $T8 %]</label> |
|
165 |
</div> |
|
166 |
<div> |
|
167 |
<input name="l_qty" id="l_qty" type="checkbox" value="Y" checked> |
|
168 |
<label for="l_qty">[% 'Quantity' | $T8 %]</label> |
|
169 |
</div> |
|
170 |
</div> |
|
171 |
|
|
172 |
<div class="col list"> |
|
173 |
<h4>[% 'Storage' | $T8 %]</h4> |
|
174 |
<div> |
|
175 |
<input name="l_warehouse_from" id="l_warehouse_from" type="checkbox" value="Y" checked> |
|
176 |
<label for="l_warehouse_from">[% 'Warehouse From' | $T8 %]</label> |
|
177 |
</div> |
|
178 |
<div> |
|
179 |
<input name="l_bin_from" id="l_bin_from" type="checkbox" value="Y" checked> |
|
180 |
<label for="l_bin_from">[% 'Bin From' | $T8 %]</label> |
|
181 |
</div> |
|
182 |
<div> |
|
183 |
<input name="l_warehouse_to" id="l_warehouse_to" type="checkbox" value="Y" checked> |
|
184 |
<label for="l_warehouse_to">[% 'Warehouse To' | $T8 %]</label> |
|
185 |
</div> |
|
186 |
<div> |
|
187 |
<input name="l_bin_to" id="l_bin_to" type="checkbox" value="Y" checked> |
|
188 |
<label for="l_bin_to">[% 'Bin To' | $T8 %]</label> |
|
189 |
</div> |
|
190 |
</div> |
|
191 |
|
|
192 |
<div class="col list"> |
|
193 |
<h4>[% 'Miscellaneous' | $T8 %]</h4> |
|
194 |
<div> |
|
195 |
<input name="l_date" id="l_date" type="checkbox" value="Y" checked> |
|
196 |
<label for="l_date">[% 'Date' | $T8 %]</label> |
|
197 |
</div> |
|
198 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
199 |
<div> |
|
200 |
<input name="l_bestbefore" id="l_bestbefore" type="checkbox" value="Y" checked> |
|
201 |
<label for="l_bestbefore">[% 'Best Before' | $T8 %]</label> |
|
202 |
</div> |
|
203 |
[% END %] |
|
204 |
<div> |
|
205 |
<input name="l_trans_id" id="l_trans_id" type="checkbox" value="Y"> |
|
206 |
<label for="l_trans_id">[% 'Trans Id' | $T8 %]</label> |
|
207 |
</div> |
|
208 |
<div> |
|
209 |
<input name="l_trans_type" id="l_trans_type" type="checkbox" value="Y" checked> |
|
210 |
<label for="l_trans_type">[% 'Trans Type' | $T8 %]</label> |
|
211 |
</div> |
|
212 |
<div> |
|
213 |
<input name="l_comment" id="l_comment" type="checkbox" value="Y"> |
|
214 |
<label for="l_comment">[% 'Comment' | $T8 %]</label> |
|
215 |
</div> |
|
216 |
<div> |
|
217 |
<input name="l_employee" id="l_employee" type="checkbox" value="Y"> |
|
218 |
<label for="l_employee">[% 'Employee' | $T8 %]</label> |
|
219 |
</div> |
|
220 |
<div> |
|
221 |
<input name="l_oe_id" id="l_oe_id" type="checkbox" value="Y"> |
|
222 |
<label for="l_oe_id">[% 'Document' | $T8 %]</label> |
|
223 |
</div> |
|
224 |
<div> |
|
225 |
<input name="l_projectnumber" id="l_projectnumber" type="checkbox" value="Y" checked> |
|
226 |
<label for="l_projectnumber">[% 'Project Number' | $T8 %]</label> |
|
227 |
</div> |
|
228 |
</div> |
|
229 |
|
|
230 |
</div><!-- /.form-addition --> |
|
231 |
|
|
232 |
|
|
233 |
</form> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/wh/..