From: Bernd Bleßmann Date: Fri, 9 Nov 2018 14:00:27 +0000 (+0100) Subject: Lager->Berichte->Lagerentnahme: auch alle Lagerplätze eine Lagers wählen können X-Git-Tag: release-3.5.4~227 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6e6f4932460f32adfd069b5fbaf19ac98773f77f;p=kivitendo-erp.git Lager->Berichte->Lagerentnahme: auch alle Lagerplätze eine Lagers wählen können siehe #333 "Bericht Lagerentnahme: Lagerplatz lässt sich nicht auswählen" --- 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 %]