Inventur: Mandantenkonfig: Voreinstellungen für Lager, Lagerplatz und Stichtag
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 29 Nov 2017 12:16:56 +0000 (13:16 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 5 Jan 2018 12:00:53 +0000 (13:00 +0100)
templates/webpages/client_config/_stocktaking.html [new file with mode: 0644]
templates/webpages/client_config/form.html

diff --git a/templates/webpages/client_config/_stocktaking.html b/templates/webpages/client_config/_stocktaking.html
new file mode 100644 (file)
index 0000000..6306f5c
--- /dev/null
@@ -0,0 +1,39 @@
+[%- USE HTML -%][%- USE LxERP -%][%- USE L -%]
+<div id="stocktaking">
+ <table>
+  <tr>
+   <td align="right" nowrap="true">[% LxERP.t8('Preselected warehouse') %]</td>
+   <td>
+     [% 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')") %]
+   </td>
+   <td>
+    [% LxERP.t8('If configured this warehouse will be preselected for stocktaking.') %]<br>
+   </td>
+  </tr>
+
+  <tr>
+   <td align="right" nowrap="true">[% LxERP.t8('Preselected bin') %]</td>
+   <td>[% L.select_tag('defaults.stocktaking_bin_id', [], id='stocktaking_bin_id', with_empty=1) %]</td>
+   <td>
+    [% LxERP.t8('If configured this bin will be preselected for stocktaking.') %]<br>
+   </td>
+  </tr>
+  <tr>
+
+  <tr>
+   <td align="right" nowrap="true">[% LxERP.t8('Preselected cutoff date') %]</td>
+   <td>[% L.date_tag('defaults.stocktaking_cutoff_date', SELF.defaults.stocktaking_cutoff_date) %]</td>
+   <td>
+    [% LxERP.t8('If configured this date will used as preselected cutoff date for stocktaking.') %]<br>
+   </td>
+  </tr>
+  <tr>
+
+ </table>
+</div>
index e1caf47..9913710 100644 (file)
@@ -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 %]
    <li><a href="#warehouse">[% LxERP.t8('Warehouse') %]</a></li>
    <li><a href="#features">[% LxERP.t8('Features') %]</a></li>
+   <li><a href="#stocktaking">[% LxERP.t8('Stocktaking') %]</a></li>
   </ul>
 
 [% 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' %]
  </div>
 </form>