From 421ed1f7d71c242bf8286919dc00e4ae879a56fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 29 Nov 2017 13:16:56 +0100 Subject: [PATCH] =?utf8?q?Inventur:=20Mandantenkonfig:=20Voreinstellungen?= =?utf8?q?=20f=C3=BCr=20Lager,=20Lagerplatz=20und=20Stichtag?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../webpages/client_config/_stocktaking.html | 39 +++++++++++++++++++ templates/webpages/client_config/form.html | 3 ++ 2 files changed, 42 insertions(+) create mode 100644 templates/webpages/client_config/_stocktaking.html diff --git a/templates/webpages/client_config/_stocktaking.html b/templates/webpages/client_config/_stocktaking.html new file mode 100644 index 000000000..6306f5c6c --- /dev/null +++ b/templates/webpages/client_config/_stocktaking.html @@ -0,0 +1,39 @@ +[%- USE HTML -%][%- USE LxERP -%][%- USE L -%] +
+ + + + + + + + + + + + + + + + + + + + + +
[% LxERP.t8('Preselected warehouse') %] + [% L.select_tag('defaults.stocktaking_warehouse_id', + SELF.all_warehouses, + id='stocktaking_warehouse_id', + with_empty=1, + default=SELF.defaults.stocktaking_warehouse_id, + title_key='description', + onchange="warehouse_selected(this.selectedIndex == 0 ? -1 : warehouses[this.selectedIndex - 1].id, -1 ,'stocktaking_bin_id')") %] + + [% LxERP.t8('If configured this warehouse will be preselected for stocktaking.') %]
+
[% LxERP.t8('Preselected bin') %][% L.select_tag('defaults.stocktaking_bin_id', [], id='stocktaking_bin_id', with_empty=1) %] + [% LxERP.t8('If configured this bin will be preselected for stocktaking.') %]
+
[% LxERP.t8('Preselected cutoff date') %][% L.date_tag('defaults.stocktaking_cutoff_date', SELF.defaults.stocktaking_cutoff_date) %] + [% LxERP.t8('If configured this date will used as preselected cutoff date for stocktaking.') %]
+
+
diff --git a/templates/webpages/client_config/form.html b/templates/webpages/client_config/form.html index e1caf47df..9913710ec 100644 --- a/templates/webpages/client_config/form.html +++ b/templates/webpages/client_config/form.html @@ -68,6 +68,7 @@ function checkavailable_filebackend(elem) { $(function() { warehouse_selected([% SELF.defaults.warehouse_id || -1 %], [% SELF.defaults.bin_id || -1 %], 'bin_id'); warehouse_selected([% SELF.defaults.warehouse_id_ignore_onhand || -1 %], [% SELF.defaults.bin_id_ignore_onhand || -1 %], 'bin_id_ignore_onhand'); + warehouse_selected([% SELF.defaults.stocktaking_warehouse_id || -1 %], [% SELF.defaults.stocktaking_bin_id || -1 %], 'stocktaking_bin_id'); enable_template_controls(); $('#doc_max_filesize_MB').val(parseInt($('#defaults_doc_max_filesize').val())/1000000.0); @@ -95,6 +96,7 @@ $(function() { [%- END %]
  • [% LxERP.t8('Warehouse') %]
  • [% LxERP.t8('Features') %]
  • +
  • [% LxERP.t8('Stocktaking') %]
  • [% PROCESS 'client_config/_ranges_of_numbers.html' %] @@ -107,6 +109,7 @@ $(function() { [%- END %] [% PROCESS 'client_config/_warehouse.html' %] [% PROCESS 'client_config/_features.html' %] +[% PROCESS 'client_config/_stocktaking.html' %] [% PROCESS 'client_config/_miscellaneous.html' %] -- 2.20.1