[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]

[% FORM.title %]

[%- INCLUDE 'common/flash.html' %] [% IF SELF.payment_term.id %] [% END %] [%- FOREACH language = SELF.languages %] [%- END %]
[% LxERP.t8("General settings") %]
[%- 'Description' | $T8 %]
[% LxERP.t8("Calculate due date automatically") %] [% L.yes_no_tag("payment_term.auto_calculation", SELF.payment_term.auto_calculation, "data-auto-calculation-toggle"="1") %]
[%- 'Netto Terms' | $T8 %] [% L.input_tag("payment_term.terms_netto_as_number", SELF.payment_term.terms_netto_as_number, size="6", disabled=(SELF.payment_term.auto_calculation ? '' : 1)) %]
[%- 'Skonto Terms' | $T8 %]
[%- 'Skonto' | $T8 %] %
[% 'Obsolete' | $T8 %] [% L.checkbox_tag('payment_term.obsolete', checked = SELF.payment_term.obsolete, for_submit=1) %]
[% LxERP.t8("Texts for quotations & orders") %] [% LxERP.t8("Texts for invoices") %]
[%- 'Long Description' | $T8 %]
[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])

[%- IF SELF.payment_term.id %] [%- END %] [%- 'Abort' | $T8 %]


[% LxERP.t8("You can use the following strings in the long description and all translations. They will be replaced by their actual values by kivitendo before they're output.") %]

[%- LxERP.t8('Field') %][%- LxERP.t8('Description') %]
<%netto_date%>[% LxERP.t8("Date the payment is due in full") %]
<%skonto_date%>[% LxERP.t8("Date the payment is due with discount") %]
<%skonto_amount%>[% LxERP.t8("The deductible amount") %]
<%skonto_in_percent%>[% LxERP.t8("The discount in percent") %]
<%total%>[% LxERP.t8("Amount payable") %]
<%total_wo_skonto%>[% LxERP.t8("Amount payable less discount") %]
<%invtotal%>[% LxERP.t8("Invoice total") %]
<%invtotal_wo_skonto%>[% LxERP.t8("Invoice total less discount") %]
<%currency%>[% LxERP.t8("The selected currency") %]
<%terms_netto%>[% LxERP.t8("The number of days for full payment") %]
<%bank%>[% LxERP.t8("Customer's/vendor's bank") %]
<%bic%>[% LxERP.t8("Customer's/vendor's BIC") %]
<%iban%>[% LxERP.t8("Customer's/vendor's IBAN") %]
<%mandator_id%>[% LxERP.t8("Customer's SEPA mandator ID") %]
<%mandate_date_of_signature%>[% LxERP.t8("Customer's Mandate Date of Signature") %]
<%account_number%>[% LxERP.t8("Customer's/vendor's account number") %]
<%bank_code%>[% LxERP.t8("Customer's/vendor's bank code") %]