--- /dev/null
+[%- 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>
+
+ <tr>
+ <td align="right" nowrap="true">[% LxERP.t8('Threshold for warning on quantity difference') %]</td>
+ <td>[% L.input_tag('defaults.stocktaking_qty_threshold_as_number', SELF.defaults.stocktaking_qty_threshold_as_number, size=15, class="numeric") %]</td>
+ <td>
+ [% LxERP.t8('If the counted quantity differs more than this threshold from the quantity in the database, a warning will be shown. Set to 0 to switch of this feature.') %]<br>
+ </td>
+ </tr>
+ <tr>
+
+ </table>
+</div>