Revision fa85b7ed
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/do/stock_out_form.html | ||
---|---|---|
1 |
<h1>[% title %]</h1> |
|
2 |
|
|
3 |
[%- IF delivered %] |
|
4 |
[%- SET RO = ' readonly' %] |
|
5 |
[%- END %] |
|
6 |
|
|
7 |
<style type="text/css"> |
|
8 |
.tr_error { |
|
9 |
background-color: #ffc9c9; |
|
10 |
} |
|
11 |
</style> |
|
12 |
|
|
13 |
<form method="post" action="do.pl" name="Form"> |
|
14 |
|
|
15 |
[%- IF ERRORS && ERRORS.size %] |
|
16 |
<p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p> |
|
17 |
[%- END %] |
|
18 |
|
|
19 |
<p> |
|
20 |
<table> |
|
21 |
<tr> |
|
22 |
<td>[% 'Part Number' | $T8 %]</td> |
|
23 |
<td>[% HTML.escape(PART_INFO.partnumber) %]</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<td>[% 'Description' | $T8 %]</td> |
|
27 |
<td>[% HTML.escape(PART_INFO.description) %]</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<td>[% 'Qty according to delivery order' | $T8 %]</td> |
|
31 |
<td>[% HTML.escape(do_qty) %] [% HTML.escape(do_unit) %]</td> |
|
32 |
</tr> |
|
33 |
</table> |
|
34 |
</p> |
|
35 |
|
|
36 |
[%- UNLESS WHCONTENTS.size %] |
|
37 |
<p>[% 'There are no items in stock.' | $T8 %]</p> |
|
38 |
|
|
39 |
<p><button type="button" onclick="window.close()">[% 'Close Window' | $T8 %]</button></p> |
|
40 |
|
|
41 |
<script type="text/javascript"> |
|
42 |
<!-- |
|
43 |
$(function(){ |
|
44 |
$(window.opener.document.getElementsByName("stock_out_[% HTML.escape(row) %]")).val(""); |
|
45 |
}); |
|
46 |
--> |
|
47 |
</script> |
|
48 |
|
|
49 |
[%- ELSE %] |
|
50 | 1 |
[% USE T8 %] |
51 | 2 |
[% USE HTML %] |
52 | 3 |
[% USE LxERP %] |
53 | 4 |
|
5 |
<form method="post" action="do.pl" name="Form"> |
|
6 |
|
|
7 |
<div class="wrapper"> |
|
8 |
|
|
9 |
<h2>[% title %]</h2> |
|
10 |
|
|
11 |
[% IF delivered %] |
|
12 |
[% SET RO = ' readonly' %] |
|
13 |
[% END %] |
|
14 |
|
|
15 |
[% IF ERRORS && ERRORS.size %] |
|
16 |
<div class="message message_error">[% ERRORS.join('<br>') %]</div> |
|
17 |
[% END %] |
|
18 |
|
|
19 |
<table class="tbl-horizontal"> |
|
20 |
<tbody> |
|
21 |
<tr> |
|
22 |
<th>[% 'Part Number' | $T8 %]</th> |
|
23 |
<td>[% HTML.escape(PART_INFO.partnumber) %]</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<th>[% 'Description' | $T8 %]</th> |
|
27 |
<td>[% HTML.escape(PART_INFO.description) %]</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<th>[% 'Qty according to delivery order' | $T8 %]</th> |
|
31 |
<td>[% HTML.escape(do_qty) %] [% HTML.escape(do_unit) %]</td> |
|
32 |
</tr> |
|
33 |
</tbody> |
|
34 |
</table> |
|
35 |
|
|
36 |
</div><!-- /.wrapper --> |
|
37 |
|
|
38 |
[% UNLESS WHCONTENTS.size %] |
|
39 |
|
|
40 |
|
|
41 |
<div class="wrapper"> |
|
42 |
<p class="message message_hint">[% 'There are no items in stock.' | $T8 %]</p> |
|
43 |
<div class="buttons"><button type="button" onclick="window.close()">[% 'Close Window' | $T8 %]</button></div> |
|
44 |
<script type="text/javascript"><!-- |
|
45 |
$(function(){ |
|
46 |
$(window.opener.document.getElementsByName("stock_out_[% HTML.escape(row) %]")).val(""); |
|
47 |
}); |
|
48 |
--></script> |
|
49 |
</div><!-- /.wrapper --> |
|
50 |
|
|
51 |
[% ELSE %] |
|
52 |
|
|
53 |
<div class="wrapper"> |
|
54 | 54 |
|
55 | 55 |
<input type="hidden" name="nextsub" value="set_stock_out"> |
56 | 56 |
<input type="hidden" name="rowcount" value="[% HTML.escape(WHCONTENTS.size) %]"> |
... | ... | |
63 | 63 |
<input type="hidden" name="closed" value="[% HTML.escape(closed) %]"> |
64 | 64 |
<input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]"> |
65 | 65 |
|
66 |
<p> |
|
67 |
<table> |
|
68 |
<tr class="listheading"> |
|
69 |
<th class="listheading"> </th> |
|
70 |
<th class="listheading">[% 'Warehouse' | $T8 %]</th> |
|
71 |
<th class="listheading">[% 'Bin' | $T8 %]</th> |
|
72 |
<th class="listheading">[% 'Charge Number' | $T8 %]</th> |
|
73 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
74 |
<th class="listheading">[% 'Best Before' | $T8 %]</th> |
|
75 |
[% END %] |
|
76 |
[%- UNLESS delivered %] |
|
77 |
<th align="right" class="listheading">[% 'Available qty' | $T8 %]</th> |
|
78 |
[%- END %] |
|
79 |
<th align="right" class="listheading">[% 'Qty' | $T8 %]</th> |
|
80 |
<th align="right" class="listheading">[% 'Unit' | $T8 %]</th> |
|
81 |
</tr> |
|
82 |
|
|
83 |
[%- FOREACH row = WHCONTENTS %] |
|
84 |
<tr [% IF row.stock_error %] class="tr_error"[% ELSE %]class="listrow[% loop.count % 2 %]"[% END %]> |
|
85 |
<td>[% loop.count %]</td> |
|
86 |
<td>[% HTML.escape(row.warehousedescription) %]</td> |
|
87 |
<td>[% HTML.escape(row.bindescription) %]</td> |
|
88 |
<td>[% HTML.escape(row.chargenumber) %]</td> |
|
89 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
90 |
<td>[% HTML.escape(row.bestbefore) %]</td> |
|
91 |
[% END %] |
|
92 |
[%- IF delivered %] |
|
93 |
|
|
94 |
<td>[% HTML.escape(LxERP.format_amount(row.stock_qty)) %]</td> |
|
95 |
<td>[% HTML.escape(row.stock_unit) %]</td> |
|
96 |
|
|
97 |
[%- ELSE %] |
|
98 |
|
|
99 |
<td>[% HTML.escape(row.available_qty) %]</td> |
|
100 |
<td><input name="qty_[% loop.count %]" style="text-align: right;" size="12" |
|
101 |
[%- IF row.stock_qty %] |
|
102 |
value="[% HTML.escape(LxERP.format_amount(row.stock_qty)) %]" |
|
103 |
[%- ELSIF ((WHCONTENTS.size == 1) && (!row.stock_qty)) %] |
|
104 |
value="[% HTML.escape(do_qty) %]" |
|
105 |
[%- END %] |
|
106 |
></td> |
|
107 |
<td> |
|
108 |
<select name="unit_[% loop.count %]"> |
|
109 |
[%- FOREACH unit = UNITS %] |
|
110 |
<option[% IF unit.name == row.stock_unit %] selected[% END %]>[% HTML.escape(unit.name) %]</option> |
|
111 |
[%- END %] |
|
112 |
</select> |
|
113 |
</td> |
|
114 |
|
|
115 |
[%- END %] |
|
116 |
</tr> |
|
117 |
|
|
118 |
<input type="hidden" name="warehouse_id_[% loop.count %]" value="[% HTML.escape(row.warehouse_id) %]"> |
|
119 |
<input type="hidden" name="bin_id_[% loop.count %]" value="[% HTML.escape(row.bin_id) %]"> |
|
120 |
<input type="hidden" name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]"> |
|
121 |
<input type="hidden" name="delivery_order_items_stock_id_[% loop.count %]" value="[% HTML.escape(row.stock_delivery_order_items_stock_id) %]"> |
|
122 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
123 |
<input type="hidden" name="bestbefore_[% loop.count %]" value="[% HTML.escape(row.bestbefore) %]"> |
|
66 |
<table class="tbl-list"> |
|
67 |
<thead> |
|
68 |
<tr> |
|
69 |
<th> </th> |
|
70 |
<th>[% 'Warehouse' | $T8 %]</th> |
|
71 |
<th>[% 'Bin' | $T8 %]</th> |
|
72 |
<th>[% 'Charge Number' | $T8 %]</th> |
|
73 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
74 |
<th>[% 'Best Before' | $T8 %]</th> |
|
75 |
[% END %] [% UNLESS delivered %] |
|
76 |
<th>[% 'Available qty' | $T8 %]</th> |
|
77 |
[% END %] |
|
78 |
<th>[% 'Qty' | $T8 %]</th> |
|
79 |
<th>[% 'Unit' | $T8 %]</th> |
|
80 |
</tr> |
|
81 |
</thead> |
|
82 |
<tbody> |
|
83 |
[% FOREACH row = WHCONTENTS %] |
|
84 |
<tr[% IF row.stock_error %] class="error"[% END %]> |
|
85 |
<td>[% loop.count %]</td> |
|
86 |
<td>[% HTML.escape(row.warehousedescription) %]</td> |
|
87 |
<td>[% HTML.escape(row.bindescription) %]</td> |
|
88 |
<td>[% HTML.escape(row.chargenumber) %]</td> |
|
89 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
90 |
<td>[% HTML.escape(row.bestbefore) %]</td> |
|
91 |
[% END %] |
|
92 |
[% IF delivered %] |
|
93 |
<td>[% HTML.escape(LxERP.format_amount(row.stock_qty)) %]</td> |
|
94 |
<td>[% HTML.escape(row.stock_unit) %]</td> |
|
95 |
[% ELSE %] |
|
96 |
<td>[% HTML.escape(row.available_qty) %]</td> |
|
97 |
<td> |
|
98 |
[% IF row.stock_qty %] |
|
99 |
[% qty_value = HTML.escape(LxERP.format_amount(row.stock_qty)) %] |
|
100 |
[% ELSIF ((whcontents.size == 1) && (!row.stock_qty)) %] |
|
101 |
[% qty_value = HTML.escape(do_qty) %] |
|
102 |
[% END %] |
|
103 |
<input name="qty_[% loop.count %]" style="text-align: right;" size="12" value="[% qty_value %]"> |
|
104 |
</td> |
|
105 |
<td> |
|
106 |
<select name="unit_[% loop.count %]"> |
|
107 |
[% FOREACH unit = UNITS %] |
|
108 |
<option[% IF unit.name == row.stock_unit %] selected[% END %]>[% HTML.escape(unit.name) %]</option> |
|
109 |
[% END %] |
|
110 |
</select> |
|
111 |
<input type="hidden" name="warehouse_id_[% loop.count %]" value="[% HTML.escape(row.warehouse_id) %]"> |
|
112 |
<input type="hidden" name="bin_id_[% loop.count %]" value="[% HTML.escape(row.bin_id) %]"> |
|
113 |
<input type="hidden" name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]"> |
|
114 |
<input type="hidden" name="delivery_order_items_stock_id_[% loop.count %]" value="[% HTML.escape(row.stock_delivery_order_items_stock_id) %]"> |
|
115 |
[% IF INSTANCE_CONF.get_show_bestbefore %] |
|
116 |
<input type="hidden" name="bestbefore_[% loop.count %]" value="[% HTML.escape(row.bestbefore) %]"> |
|
117 |
[% END %] |
|
118 |
</td> |
|
119 |
[% END %] |
|
120 |
</tr> |
|
121 |
[% END %] |
|
122 |
</tbody> |
|
123 |
</table> |
|
124 |
|
|
125 |
<div class="buttons"> |
|
126 |
[% IF delivered %] |
|
127 |
<button type="button" name="action" onclick="window.close()" class="neutral">[% 'Close Window' | $T8 %]</button> |
|
128 |
[% ELSE %] |
|
129 |
<input type="submit" name="action" value="[% 'Continue' | $T8 %]"> |
|
124 | 130 |
[% END %] |
125 |
[%- END %] |
|
126 |
</table> |
|
127 |
</p> |
|
128 |
|
|
129 |
<hr size="3" noshade> |
|
130 |
|
|
131 |
<p> |
|
132 |
[%- IF delivered %] |
|
133 |
<button type="button" class="submit" name="action" onclick="window.close()">[% 'Close Window' | $T8 %]</button> |
|
134 |
[%- ELSE %] |
|
135 |
<input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]"> |
|
136 |
[%- END %] |
|
137 |
</p> |
|
138 |
|
|
139 |
[%- END %] |
|
140 |
</form> |
|
131 |
</div> |
|
141 | 132 |
|
133 |
</div><!-- /.wrapper --> |
|
142 | 134 |
|
135 |
[% END %] |
|
136 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/do/stock_out_form.html