From 6e6f4932460f32adfd069b5fbaf19ac98773f77f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 9 Nov 2018 15:00:27 +0100 Subject: [PATCH] =?utf8?q?Lager->Berichte->Lagerentnahme:=20auch=20alle=20?= =?utf8?q?Lagerpl=C3=A4tze=20eine=20Lagers=20w=C3=A4hlen=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit siehe #333 "Bericht Lagerentnahme: Lagerplatz lässt sich nicht auswählen" --- templates/webpages/common/select_warehouse_bin.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/webpages/common/select_warehouse_bin.html b/templates/webpages/common/select_warehouse_bin.html index 3b916ca0e..ae9ef173b 100644 --- a/templates/webpages/common/select_warehouse_bin.html +++ b/templates/webpages/common/select_warehouse_bin.html @@ -10,10 +10,13 @@ warehouses[[% WAREHOUSES_it.count - 1 %]] = new Array(); warehouses[[% WAREHOUSES_it.count - 1 %]]['id'] = [% warehouse.id %]; warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'] = new Array(); + warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'][0] = new Array(); + warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'][0]['description'] = "---"; + warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'][0]['id'] = ""; [% USE BINS_it = Iterator(warehouse.BINS) %][% FOREACH bin = BINS_it %] - warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'][[% BINS_it.count - 1 %]] = new Array(); - warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'][[% BINS_it.count - 1 %]]['description'] = "[% JavaScript.escape(bin.description) %]"; - warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'][[% BINS_it.count - 1 %]]['id'] = [% bin.id %]; + warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'][[% BINS_it.count %]] = new Array(); + warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'][[% BINS_it.count %]]['description'] = "[% JavaScript.escape(bin.description) %]"; + warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'][[% BINS_it.count %]]['id'] = [% bin.id %]; [% END %] [% END %] -- 2.20.1