[%- USE T8 %][%- USE L %][% USE LxERP %]

[% title | html %]

[% PROCESS 'common/flash.html' %]
[% 'Posting Configuration' | $T8 %]
[% 'Payments Changeable' | $T8 %] [% L.select_tag('payments_changeable', SELF.payment_options, value_key => 'value', title_key => 'title', default => SELF.payments_changeable) %] [% 'Should payments be and when should they be changeable after posting?' | $T8 %]
[% 'DATEV check configuration' | $T8 %]
[% '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 %]
[% 'Check on sales invoice' | $T8 %] [% L.yes_no_tag('datev_check_on_sales_invoice', SELF.datev_check_on_sales_invoice) %] [% 'Perform check when a sales invoice or a payment for a sales invoice is posted?' | $T8 %]
[% 'Check on purchase invoice' | $T8 %] [% L.yes_no_tag('datev_check_on_purchase_invoice', SELF.datev_check_on_purchase_invoice) %] [% 'Perform check when a purchase invoice or a payment for a purchase invoice is posted?' | $T8 %]
[% 'Check on ar transaction' | $T8 %] [% L.yes_no_tag('datev_check_on_ar_transaction', SELF.datev_check_on_ar_transaction) %] [% 'Perform check when an ar transaction is posted?' | $T8 %]
[% 'Check on ap transaction' | $T8 %] [% L.yes_no_tag('datev_check_on_ap_transaction', SELF.datev_check_on_ap_transaction) %] [% 'Perform check when an ap transaction is posted?' | $T8 %]
[% 'Check on gl transaction' | $T8 %] [% L.yes_no_tag('datev_check_on_gl_transaction', SELF.datev_check_on_gl_transaction) %] [% 'Perform check when a gl transaction is posted?' | $T8 %]
[% 'Warehouse' | $T8 %]
[% 'Show Bestbefore' | $T8 %] [% L.yes_no_tag('show_bestbefore', SELF.show_bestbefore) %] [% 'Show fields used for the best before date?' | $T8 %]
[% '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 %]
[% 'This can be done with the following query:' | $T8 %]

UPDATE inventory SET bestbefore = NULL;

[% 'Any stock contents containing a best before date will be impossible to stock out otherwise.' | $T8 %]

[%- L.hidden_tag('action', 'ClientConfig/dispatch') %] [%- L.submit_tag('action_save', LxERP.t8('Save')) %]