1 [%- USE T8 %][%- USE L %][% USE LxERP %]
 
   3 [% PROCESS 'common/select_warehouse_bin.html'  WAREHOUSES=SELF.WAREHOUSES warehouse_id=SELF.warehouse_id bin_id=SELF.bin_id %]
 
   4 <h1>[% title | html %]</h1>
 
   6 [% PROCESS 'common/flash.html' %]
 
   8 <form action='controller.pl' method='POST'>
 
  12  <tr class='listheading'>
 
  13    <th colspan="3">[% 'Posting Configuration' | $T8 %]</th>
 
  17    <td align="right">[% 'Sales invoices changeable' | $T8 %]</td>
 
  18    <td>[% L.select_tag('is_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.is_changeable) %]</td>
 
  19    <td>[% 'Should sales invoices be and when should they be changeable or deleteable after posting?' | $T8 %]</td>
 
  22    <td align="right">[% 'Purchase invoices changeable' | $T8 %]</td>
 
  23    <td>[% L.select_tag('ir_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.ir_changeable) %]</td>
 
  24    <td>[% 'Should purchase invoices be and when should they be deleteable after posting?' | $T8 %]</td>
 
  27    <td align="right">[% 'AR transactions changeable' | $T8 %]</td>
 
  28    <td>[% L.select_tag('ar_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.ar_changeable) %]</td>
 
  29    <td>[% 'Should ar transactions be and when should they be changeable or deleteable after posting?' | $T8 %]</td>
 
  32    <td align="right">[% 'AP transactions changeable' | $T8 %]</td>
 
  33    <td>[% L.select_tag('ap_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.ap_changeable) %]</td>
 
  34    <td>[% 'Should ap transactions be and when should they be changeable or deleteable after posting?' | $T8 %]</td>
 
  37    <td align="right">[% 'GL transactions changeable' | $T8 %]</td>
 
  38    <td>[% L.select_tag('gl_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.gl_changeable) %]</td>
 
  39    <td>[% 'Should gl transactions be and when should they be changeable or deleteable after posting?' | $T8 %]</td>
 
  46    <td align="right">[% 'Payments Changeable' | $T8 %]</td>
 
  47    <td>[% L.select_tag('payments_changeable', SELF.payment_options, value_key => 'value', title_key => 'title', default => SELF.payments_changeable) %]</td>
 
  48    <td>[% 'Should payments be and when should they be changeable after posting?' | $T8 %]</td>
 
  55    <td align="right">[% 'Show "mark as paid" in sales invoices' | $T8 %]</td>
 
  56    <td>[% L.yes_no_tag('is_show_mark_as_paid', SELF.is_show_mark_as_paid) %]</td>
 
  57    <td>[% 'Should the "mark as paid" button showed on sales invoices?' | $T8 %]</td>
 
  60    <td align="right">[% 'Show "mark as paid" in purchase invoices' | $T8 %]</td>
 
  61    <td>[% L.yes_no_tag('ir_show_mark_as_paid', SELF.ir_show_mark_as_paid) %]</td>
 
  62    <td>[% 'Should the "mark as paid" button showed in purchase invoices?' | $T8 %]</td>
 
  65    <td align="right">[% 'Show "mark as paid" in ar transactions' | $T8 %]</td>
 
  66    <td>[% L.yes_no_tag('ar_show_mark_as_paid', SELF.ar_show_mark_as_paid) %]</td>
 
  67    <td>[% 'Should the "mark as paid" button showed in ar transactions?' | $T8 %]</td>
 
  70    <td align="right">[% 'Show "mark as paid" in ap transactions' | $T8 %]</td>
 
  71    <td>[% L.yes_no_tag('ap_show_mark_as_paid', SELF.ap_show_mark_as_paid) %]</td>
 
  72    <td>[% 'Should the "mark as paid" button showed in ap transactions?' | $T8 %]</td>
 
  79    <td align="right">[% 'Accounting method' | $T8 %]</td>
 
  80    <td>[% L.select_tag('accounting_method', SELF.accounting_options, value_key => 'value', title_key => 'title', default => SELF.accounting_method) %]</td>
 
  81    <td>[% 'This option controls the posting and calculation behavior for the accounting method.' | $T8 %]</td>
 
  84    <td align="right">[% 'Inventory system' | $T8 %]</td>
 
  85    <td>[% L.select_tag('inventory_system', SELF.inventory_options, value_key => 'value', title_key => 'title', default => SELF.inventory_system) %]</td>
 
  87      [% 'This option controls the inventory system.' | $T8 %]<br>
 
  88      [% 'ATTENTION! You can not simply change it from periodic to perpetual once you started posting.' | $T8 %]
 
  92    <td align="right">[% 'Profit determination' | $T8 %]</td>
 
  93    <td>[% L.select_tag('profit_determination', SELF.profit_options, value_key => 'value', title_key => 'title', default => SELF.profit_determination) %]</td>
 
  94    <td>[% 'This option controls the method used for profit determination.' | $T8 %]</td>
 
 100  <tr class='listheading'>
 
 101    <th colspan="3">[% 'DATEV check configuration' | $T8 %]</th>
 
 104    <td colspan="3">[% 'It is possible to make a quick DATEV export everytime you post a record to ensure things work nicely with their data requirements. This will result in a slight overhead though you can enable this for each type of record independantly.' | $T8 %]</td>
 
 107    <td align="right">[% 'Check on sales invoice' | $T8 %]</td>
 
 108    <td>[% L.yes_no_tag('datev_check_on_sales_invoice', SELF.datev_check_on_sales_invoice) %]</td>
 
 109    <td>[% 'Perform check when a sales invoice or a payment for a sales invoice is posted?' | $T8 %]</td>
 
 112    <td align="right">[% 'Check on purchase invoice' | $T8 %]</td>
 
 113    <td>[% L.yes_no_tag('datev_check_on_purchase_invoice', SELF.datev_check_on_purchase_invoice) %]</td>
 
 114    <td>[% 'Perform check when a purchase invoice or a payment for a purchase invoice is posted?' | $T8 %]</td>
 
 117    <td align="right">[% 'Check on ar transaction' | $T8 %]</td>
 
 118    <td>[% L.yes_no_tag('datev_check_on_ar_transaction', SELF.datev_check_on_ar_transaction) %]</td>
 
 119    <td>[% 'Perform check when an ar transaction is posted?' | $T8 %]</td>
 
 122    <td align="right">[% 'Check on ap transaction' | $T8 %]</td>
 
 123    <td>[% L.yes_no_tag('datev_check_on_ap_transaction', SELF.datev_check_on_ap_transaction) %]</td>
 
 124    <td>[% 'Perform check when an ap transaction is posted?' | $T8 %]</td>
 
 127    <td align="right">[% 'Check on gl transaction' | $T8 %]</td>
 
 128    <td>[% L.yes_no_tag('datev_check_on_gl_transaction', SELF.datev_check_on_gl_transaction) %]</td>
 
 129    <td>[% 'Perform check when a gl transaction is posted?' | $T8 %]</td>
 
 135  <tr class='listheading'>
 
 136    <th colspan="3">[% 'Orders / Delivery Orders deleteable' | $T8 %]</th>
 
 139    <td align="right">[% 'Sales Orders deleteable' | $T8 %]</td>
 
 140    <td>[% L.yes_no_tag('sales_order_show_delete', SELF.sales_order_show_delete) %]</td>
 
 141    <td>[% 'Show delete button in sales orders?' | $T8 %]</td>
 
 144    <td align="right">[% 'Purchase Orders deleteable' | $T8 %]</td>
 
 145    <td>[% L.yes_no_tag('purchase_order_show_delete', SELF.purchase_order_show_delete) %]</td>
 
 146    <td>[% 'Show delete button in purchase orders?' | $T8 %]</td>
 
 149    <td align="right">[% 'Sales Delivery Orders deleteable' | $T8 %]</td>
 
 150    <td>[% L.yes_no_tag('sales_delivery_order_show_delete', SELF.sales_delivery_order_show_delete) %]</td>
 
 151    <td>[% 'Show delete button in sales delivery orders?' | $T8 %]</td>
 
 154    <td align="right">[% 'Purchase Delivery Orders deleteable' | $T8 %]</td>
 
 155    <td>[% L.yes_no_tag('purchase_delivery_order_show_delete', SELF.purchase_delivery_order_show_delete) %]</td>
 
 156    <td>[% 'Show delete button in purchase delivery orders?' | $T8 %]</td>
 
 162  <tr class='listheading'>
 
 163    <th colspan="3">[% 'Warehouse' | $T8 %]</th>
 
 166    <td align="right">[% 'Show Bestbefore' | $T8 %]</td>
 
 168      [% L.yes_no_tag('show_bestbefore', SELF.show_bestbefore) %]
 
 171      [% 'Show fields used for the best before date?' | $T8 %]<br>
 
 172      [% 'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' | $T8 %]<br>
 
 173      [% 'This can be done with the following query:' | $T8 %]<br>
 
 175      UPDATE inventory SET bestbefore = NULL; <br>
 
 177      [% 'Any stock contents containing a best before date will be impossible to stock out otherwise.' | $T8 %]
 
 183   <th align="right" nowrap="true">[% 'Default Warehouse' | $T8 %]</th>
 
 185    <select name="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)">
 
 186     [%- FOREACH warehouse = SELF.WAREHOUSES %]
 
 187       <option value="[% HTML.escape(warehouse.id) %]"[% IF SELF.warehouse_id == warehouse.id %] selected[% END %]>[% warehouse.description %]</option>
 
 192      [% 'This is the default bin for parts' | $T8 %]<br>
 
 196   <th align="right" nowrap="true">[% 'Default Bin' | $T8 %]</th>
 
 197   <td><select id="bin_id" name="bin_id"></select></td>
 
 201  <tr class='listheading'>
 
 202    <th colspan="3">[% 'Weight' | $T8 %]</th>
 
 205    <td align="right">[% 'Show weights' | $T8 %]</td>
 
 207      [% L.yes_no_tag('show_weight', SELF.show_weight) %]
 
 210      [% 'Show the weights of articles and the total weight in orders, invoices and delivery notes?' | $T8 %]<br>
 
 217 [%- L.hidden_tag('action',  'ClientConfig/dispatch')  %]
 
 218 [%- L.submit_tag('action_save',  LxERP.t8('Save'))  %]