1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%]
2 <h1>[% FORM.title %]</h1>
4 <form method="post" action="controller.pl" id="form">
6 [%- INCLUDE 'common/flash.html' %]
9 <tr class="listheading">
11 <th>[% LxERP.t8("General settings") %]</th>
15 <td>[%- 'Description' | $T8 %]</td>
17 [% P.input_tag("payment_term.description", SELF.payment_term.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %]
22 <td>[% LxERP.t8("Calculate due date automatically") %]</td>
23 <td>[% L.yes_no_tag("payment_term.auto_calculation", SELF.payment_term.auto_calculation, "data-auto-calculation-toggle"="1") %]</td>
27 <td>[%- 'Netto Terms' | $T8 %]</td>
29 [% 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)) %]
34 <td>[%- 'Skonto Terms' | $T8 %]</td>
36 <input name="payment_term.terms_skonto_as_number" value="[%- HTML.escape(SELF.payment_term.terms_skonto_as_number) %]" size="6">
41 <td>[%- 'Skonto' | $T8 %]</td>
43 <input name="payment_term.percent_skonto_as_percent" value="[%- HTML.escape(SELF.payment_term.percent_skonto_as_percent) %]" size="6">%
47 [% IF SELF.payment_term.id %]
49 <td>[% 'Obsolete' | $T8 %]</td>
50 <td>[% L.checkbox_tag('payment_term.obsolete', checked = SELF.payment_term.obsolete, for_submit=1) %]</td>
55 <tr class="listheading">
57 <th>[% LxERP.t8("Texts for quotations & orders") %]</th>
58 <th>[% LxERP.t8("Texts for invoices") %]</th>
62 <td>[%- 'Long Description' | $T8 %]</td>
64 [% P.input_tag("payment_term.description_long", SELF.payment_term.description_long, size="60", "data-validate"="required", "data-title"=LxERP.t8("Long Description for quotations & orders")) %]
68 [% P.input_tag("payment_term.description_long_invoice", SELF.payment_term.description_long_invoice, size="60", "data-validate"="required", "data-title"=LxERP.t8("Long Description for invoices")) %]
72 [%- FOREACH language = SELF.languages %]
74 <td>[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</td>
76 <input name="translation_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long', language, 1)) %]" size="60">
80 <input name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long_invoice', language, 1)) %]" size="60">
86 [% P.hidden_tag("id", SELF.payment_term.id) %]
90 <p>[% 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.") %]</p>
93 <tr class="listheading"><th>[%- LxERP.t8('Field') %]</th><th>[%- LxERP.t8('Description') %]</th></tr>
94 <tr><td><%netto_date%></td><td>[% LxERP.t8("Date the payment is due in full") %]</td></tr>
95 <tr><td><%skonto_date%></td><td>[% LxERP.t8("Date the payment is due with discount") %]</td></tr>
96 <tr><td><%skonto_amount%></td><td>[% LxERP.t8("The deductible amount") %]</td></tr>
97 <tr><td><%skonto_in_percent%></td><td>[% LxERP.t8("The discount in percent") %]</td></tr>
98 <tr><td><%total%></td><td>[% LxERP.t8("Amount payable") %]</td></tr>
99 <tr><td><%total_wo_skonto%></td><td>[% LxERP.t8("Amount payable less discount") %]</td></tr>
100 <tr><td><%invtotal%></td><td>[% LxERP.t8("Invoice total") %]</td></tr>
101 <tr><td><%invtotal_wo_skonto%></td><td>[% LxERP.t8("Invoice total less discount") %]</td></tr>
102 <tr><td><%currency%></td><td>[% LxERP.t8("The selected currency") %]</td></tr>
103 <tr><td><%terms_netto%></td><td>[% LxERP.t8("The number of days for full payment") %]</td></tr>
104 <tr><td><%bank%></td><td>[% LxERP.t8("Customer's/vendor's bank") %]</td></tr>
105 <tr><td><%bic%></td><td>[% LxERP.t8("Customer's/vendor's BIC") %]</td></tr>
106 <tr><td><%iban%></td><td>[% LxERP.t8("Customer's/vendor's IBAN") %]</td></tr>
107 <tr><td><%mandator_id%></td><td>[% LxERP.t8("Customer's SEPA mandator ID") %]</td></tr>
108 <tr><td><%mandate_date_of_signature%></td><td>[% LxERP.t8("Customer's Mandate Date of Signature") %]</td></tr>
109 <tr><td><%account_number%></td><td>[% LxERP.t8("Customer's/vendor's account number") %]</td></tr>
110 <tr><td><%bank_code%></td><td>[% LxERP.t8("Customer's/vendor's bank code") %]</td></tr>