[%- INCLUDE 'common/flash.html' %]
<table>
+ <tr class="listheading">
+ <th></th>
+ <th>[% LxERP.t8("General settings") %]</th>
+ </tr>
+
<tr>
<td>[%- 'Description' | $T8 %]</td>
<td>
</td>
</tr>
- <tr>
- <td>[%- 'Long Description' | $T8 %]</td>
- <td>
- <input name="payment_term.description_long" value="[%- HTML.escape(SELF.payment_term.description_long) %]" size="60">
- </td>
- </tr>
-
- [%- FOREACH language = SELF.languages %]
- <tr>
- <td>[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</td>
- <td>
- <input name="translation_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long', language, 1)) %]" size="60">
- </td>
- </tr>
- [%- END %]
-
<tr>
<td>[% LxERP.t8("Calculate due date automatically") %]</td>
<td>[% L.yes_no_tag("payment_term.auto_calculation", SELF.payment_term.auto_calculation, "data-auto-calculation-toggle"="1") %]</td>
<input name="payment_term.percent_skonto_as_percent" value="[%- HTML.escape(SELF.payment_term.percent_skonto_as_percent) %]" size="6">%
</td>
</tr>
+
+ [% IF SELF.payment_term.id %]
+ <tr>
+ <td>[% 'Obsolete' | $T8 %]</td>
+ <td>[% L.checkbox_tag('payment_term.obsolete', checked = SELF.payment_term.obsolete, for_submit=1) %]</td>
+ </tr>
+ </tr>
+ [% END %]
+
+ <tr class="listheading">
+ <th></th>
+ <th>[% LxERP.t8("Texts for quotations & orders") %]</th>
+ <th>[% LxERP.t8("Texts for invoices") %]</th>
+ </tr>
+
+ <tr>
+ <td>[%- 'Long Description' | $T8 %]</td>
+ <td>
+ <input name="payment_term.description_long" value="[%- HTML.escape(SELF.payment_term.description_long) %]" size="60">
+ </td>
+
+ <td>
+ <input name="payment_term.description_long_invoice" value="[%- HTML.escape(SELF.payment_term.description_long_invoice) %]" size="60">
+ </td>
+ </tr>
+
+ [%- FOREACH language = SELF.languages %]
+ <tr>
+ <td>[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</td>
+ <td>
+ <input name="translation_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long', language, 1)) %]" size="60">
+ </td>
+
+ <td>
+ <input name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long_invoice', language, 1)) %]" size="60">
+ </td>
+ </tr>
+ [%- END %]
</table>
<p>
<table>
<tr class="listheading"><th>[%- LxERP.t8('Field') %]</th><th>[%- LxERP.t8('Description') %]</th></tr>
- <tr><td><%payment_terms%></td><td>[% LxERP.t8("Payment description") %]</td></tr>
- <tr><td><%payment_description%></td><td>[% LxERP.t8("Payment description detail") %]</td></tr>
<tr><td><%netto_date%></td><td>[% LxERP.t8("Date the payment is due in full") %]</td></tr>
<tr><td><%skonto_date%></td><td>[% LxERP.t8("Date the payment is due with discount") %]</td></tr>
<tr><td><%skonto_amount%></td><td>[% LxERP.t8("The deductible amount") %]</td></tr>