1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%]
2 <h1>[% FORM.title %]</h1>
5 <form method="post" action="controller.pl" id="form">
6 [%- INCLUDE 'common/flash.html' %]
9 <table class="tbl-horizontal">
10 <caption> [% LxERP.t8("General settings") %] </caption>
11 <colgroup><col class="wi-mediumsmall"><col></colgroup>
18 <td> [%- 'Description' | $T8 %] </td>
19 <td> [% P.input_tag("payment_term.description", SELF.payment_term.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %] </td>
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>
26 <td> [%- 'Netto Terms' | $T8 %] </td>
27 <td> [% 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)) %] </td>
30 <td> [%- 'Skonto Terms' | $T8 %] </td>
32 <input type="text" name="payment_term.terms_skonto_as_number" value="[%- HTML.escape(SELF.payment_term.terms_skonto_as_number) %]" size="6">
36 <td> [%- 'Skonto' | $T8 %] </td>
38 <input type="text" name="payment_term.percent_skonto_as_percent" value="[%- HTML.escape(SELF.payment_term.percent_skonto_as_percent) %]" size="6">
41 [% IF SELF.payment_term.id %]
43 <td> [% 'Obsolete' | $T8 %] </td>
44 <td> [% L.checkbox_tag('payment_term.obsolete', checked = SELF.payment_term.obsolete, for_submit=1) %] </td>
51 <table class="tbl-horizontal">
52 <caption> [%- 'Long Description' | $T8 %] </caption>
55 <th> [% LxERP.t8("Texts for quotations & orders") %] </th>
56 <td> [% 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")) %] </td>
59 <th> [% LxERP.t8("Texts for invoices") %] </th>
60 <td> [% 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")) %] </td>
62 [%- FOREACH language = SELF.languages %]
63 <tr><th class="caption" colspan="2">[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</th></tr>
65 <th> [% LxERP.t8("Texts for quotations & orders") %] </th>
67 <input type="text" name="translation_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long', language, 1)) %]" size="60">
71 <th> [% LxERP.t8("Texts for invoices") %] </th>
73 <input type="text" name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long_invoice', language, 1)) %]" size="60">
79 [% P.hidden_tag("id", SELF.payment_term.id) %]
86 <div class="instructions">
87 <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>
88 <p>[% LxERP.t8("As of version 3.7 most of the variables are also availabe as a print variable.") %]</p>
91 <table class="tbl-list-plain">
94 <th> [%- LxERP.t8('Field') %] </th>
95 <th> [%- LxERP.t8('Description') %] </th>
100 <td> <%netto_date%> </td>
101 <td> [% LxERP.t8("Date the payment is due in full") %] </td>
104 <td> <%skonto_date%> </td>
105 <td> [% LxERP.t8("Date the payment is due with discount") %] </td>
108 <td> <%skonto_amount%> </td>
109 <td> [% LxERP.t8("The deductible amount") %] </td>
112 <td> <%skonto_in_percent%> </td>
113 <td> [% LxERP.t8("The discount in percent") %] </td>
116 <td> <%total%> </td>
117 <td> [% LxERP.t8("Amount payable") %] </td>
120 <td> <%total_wo_skonto%> </td>
121 <td> [% LxERP.t8("Amount payable less discount") %] </td>
124 <td> <%invtotal%> </td>
125 <td> [% LxERP.t8("Invoice total") %] </td>
128 <td> <%invtotal_wo_skonto%> </td>
129 <td> [% LxERP.t8("Invoice total less discount") %] </td>
132 <td> <%currency%> </td>
133 <td> [% LxERP.t8("The selected currency") %] </td>
136 <td> <%terms_netto%> </td>
137 <td> [% LxERP.t8("The number of days for full payment") %] </td>
140 <td> <%bank%> </td>
141 <td> [% LxERP.t8("Customer's/vendor's bank") %] </td>
144 <td> <%bic%> </td>
145 <td> [% LxERP.t8("Customer's/vendor's BIC") %] </td>
148 <td> <%iban%> </td>
149 <td> [% LxERP.t8("Customer's/vendor's IBAN") %] </td>
152 <td> <%mandator_id%> </td>
153 <td> [% LxERP.t8("Customer's SEPA mandator ID") %] </td>
156 <td> <%mandate_date_of_signature%> </td>
157 <td> [% LxERP.t8("Customer's Mandate Date of Signature") %] </td>
160 <td> <%account_number%> </td>
161 <td> [% LxERP.t8("Customer's/vendor's account number") %] </td>
164 <td> <%bank_code%> </td>
165 <td> [% LxERP.t8("Customer's/vendor's bank code") %] </td>