From: Bernd Bleßmann Date: Wed, 29 Nov 2017 12:16:56 +0000 (+0100) Subject: Inventur: Mandantenkonfig: Voreinstellungen für Lager, Lagerplatz und Stichtag X-Git-Tag: release-3.5.4~533 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=421ed1f7d71c242bf8286919dc00e4ae879a56fe;p=kivitendo-erp.git Inventur: Mandantenkonfig: Voreinstellungen für Lager, Lagerplatz und Stichtag --- 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' %]