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

[% FORM.title %]

[%- INCLUDE 'common/flash.html' %]
[% IF !PAYMENT_TERMS.size %]

[%- 'No payment term has been created yet.' | $T8 %]

[%- ELSE %] [%- FOREACH payment_term = PAYMENT_TERMS %] [%- END %]
[%- LxERP.t8('reorder item') %] [%- 'Description' | $T8 %] [%- 'Long Description (quotations & orders)' | $T8 %] [%- 'Long Description (invoices)' | $T8 %] [% 'Automatic date calculation' | $T8 %] [%- 'Netto Terms' | $T8 %] [%- 'Skonto Terms' | $T8 %] [%- 'Skonto' | $T8 %] [%- 'Obsolete' | $T8 %]
[%- LxERP.t8('reorder item') %] [%- HTML.escape(payment_term.description) %] [%- HTML.escape(payment_term.description_long) %] [%- HTML.escape(payment_term.description_long_invoice) %] [% IF payment_term.auto_calculation %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %] [%- HTML.escape(payment_term.terms_netto_as_number) %] [%- HTML.escape(payment_term.terms_skonto_as_number) %] [%- HTML.escape(payment_term.percent_skonto_as_percent) %] % [%- HTML.escape(payment_term.obsolete) %]
[%- END %]
[% L.sortable_element('#payment_term_list tbody', url => 'controller.pl?action=PaymentTerm/reorder', with => 'payment_term_id') %]