Revision 2385eb8d
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
templates/webpages/wh/warehouse_selection_assembly.html | ||
---|---|---|
66 | 66 |
|
67 | 67 |
<p> |
68 | 68 |
<table> |
69 |
<tr> |
|
70 |
<th align="right" nowrap>[% 'Assembly' | $T8 %]</th> |
|
71 |
<td> |
|
72 |
[% P.part_picker("parts_id", parts_id, part_type="assembly", class="partpicker_fat_set_item initial_focus") %] |
|
73 |
</td> |
|
74 |
</tr> |
|
75 |
|
|
69 | 76 |
<tr> |
70 | 77 |
<th align="right" nowrap>[% 'Destination warehouse' | $T8 %]</th> |
71 | 78 |
<td> |
72 |
<select name="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)"> |
|
79 |
<select name="warehouse_id" id="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)">
|
|
73 | 80 |
[%- FOREACH warehouse = WAREHOUSES %] |
74 | 81 |
<option value="[% HTML.escape(warehouse.id) %]"[% IF warehouse_id == warehouse.id %] selected[% END %]>[% warehouse.description %]</option> |
75 | 82 |
[%- END %] |
... | ... | |
82 | 89 |
<td><select id="bin_id" name="bin_id"></select></td> |
83 | 90 |
</tr> |
84 | 91 |
|
85 |
<tr> |
|
86 |
<th align="right" nowrap>[% 'Assembly' | $T8 %]</th> |
|
87 |
<td> |
|
88 |
[% P.part_picker("parts_id", parts_id, part_type="assembly") %] |
|
89 |
</td> |
|
90 |
</tr> |
|
91 |
|
|
92 | 92 |
<tr> |
93 | 93 |
<th align="right" nowrap>[% 'Charge number' | $T8 %]</th> |
94 | 94 |
<td><input name="chargenumber" size="30" value="[% HTML.escape(chargenumber) %]"></td> |
... | ... | |
129 | 129 |
</p> |
130 | 130 |
</form> |
131 | 131 |
|
132 |
<script type='text/javascript'> |
|
133 |
$(function(){ |
|
134 |
$('#parts_id').on('set_item:PartPicker', function(event, item) { |
|
135 |
if (!item.warehouse_id) |
|
136 |
return; |
|
137 |
|
|
138 |
$('#warehouse_id').val(item.warehouse_id); |
|
139 |
warehouse_selected(item.warehouse_id, item.bin_id); |
|
140 |
}); |
|
141 |
}) |
|
142 |
</script> |
Auch abrufbar als: Unified diff
Erzeugnis fertigen: Standardlager des Erzeugnisses auswählen