c371c463c9befc6b934f0c9c71344f67de4ff1d3
[kivitendo-erp.git] / templates / webpages / payment_term / form.html
1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%]
2 <h1>[% FORM.title %]</h1>
3
4  <form method="post" action="controller.pl" id="form">
5
6 [%- INCLUDE 'common/flash.html' %]
7
8   <table>
9    <tr class="listheading">
10     <th></th>
11     <th>[% LxERP.t8("General settings") %]</th>
12    </tr>
13
14    <tr>
15     <td>[%- 'Description' | $T8 %]</td>
16     <td>
17      [% P.input_tag("payment_term.description", SELF.payment_term.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %]
18     </td>
19    </tr>
20
21    <tr>
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>
24    </tr>
25
26    <tr>
27     <td>[%- 'Netto Terms' | $T8 %]</td>
28     <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)) %]
30     </td>
31    </tr>
32
33    <tr>
34     <td>[%- 'Skonto Terms' | $T8 %]</td>
35     <td>
36      <input name="payment_term.terms_skonto_as_number" value="[%- HTML.escape(SELF.payment_term.terms_skonto_as_number) %]" size="6">
37     </td>
38    </tr>
39
40    <tr>
41     <td>[%- 'Skonto' | $T8 %]</td>
42     <td>
43      <input name="payment_term.percent_skonto_as_percent" value="[%- HTML.escape(SELF.payment_term.percent_skonto_as_percent) %]" size="6">%
44     </td>
45    </tr>
46
47    [% IF SELF.payment_term.id %]
48    <tr>
49      <td>[% 'Obsolete' | $T8 %]</td>
50      <td>[% L.checkbox_tag('payment_term.obsolete', checked = SELF.payment_term.obsolete, for_submit=1) %]</td>
51    </tr>
52    </tr>
53    [% END %]
54
55    <tr class="listheading">
56     <th></th>
57     <th>[% LxERP.t8("Texts for quotations & orders") %]</th>
58     <th>[% LxERP.t8("Texts for invoices") %]</th>
59    </tr>
60
61    <tr>
62     <td>[%- 'Long Description' | $T8 %]</td>
63     <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")) %]
65     </td>
66
67     <td>
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")) %]
69     </td>
70    </tr>
71
72    [%- FOREACH language = SELF.languages %]
73     <tr>
74      <td>[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</td>
75      <td>
76       <input name="translation_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long', language, 1)) %]" size="60">
77      </td>
78
79      <td>
80       <input name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long_invoice', language, 1)) %]" size="60">
81      </td>
82     </tr>
83    [%- END %]
84   </table>
85
86   [% P.hidden_tag("id", SELF.payment_term.id) %]
87
88   <hr size="3" noshade>
89
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>
91
92   <table>
93    <tr class="listheading"><th>[%- LxERP.t8('Field') %]</th><th>[%- LxERP.t8('Description') %]</th></tr>
94    <tr><td>&lt;%netto_date%&gt;</td><td>[% LxERP.t8("Date the payment is due in full") %]</td></tr>
95    <tr><td>&lt;%skonto_date%&gt;</td><td>[% LxERP.t8("Date the payment is due with discount") %]</td></tr>
96    <tr><td>&lt;%skonto_amount%&gt;</td><td>[% LxERP.t8("The deductible amount") %]</td></tr>
97    <tr><td>&lt;%skonto_in_percent%&gt;</td><td>[% LxERP.t8("The discount in percent") %]</td></tr>
98    <tr><td>&lt;%total%&gt;</td><td>[% LxERP.t8("Amount payable") %]</td></tr>
99    <tr><td>&lt;%total_wo_skonto%&gt;</td><td>[% LxERP.t8("Amount payable less discount") %]</td></tr>
100    <tr><td>&lt;%invtotal%&gt;</td><td>[% LxERP.t8("Invoice total") %]</td></tr>
101    <tr><td>&lt;%invtotal_wo_skonto%&gt;</td><td>[% LxERP.t8("Invoice total less discount") %]</td></tr>
102    <tr><td>&lt;%currency%&gt;</td><td>[% LxERP.t8("The selected currency") %]</td></tr>
103    <tr><td>&lt;%terms_netto%&gt;</td><td>[% LxERP.t8("The number of days for full payment") %]</td></tr>
104    <tr><td>&lt;%bank%&gt;</td><td>[% LxERP.t8("Customer's/vendor's bank") %]</td></tr>
105    <tr><td>&lt;%bic%&gt;</td><td>[% LxERP.t8("Customer's/vendor's BIC") %]</td></tr>
106    <tr><td>&lt;%iban%&gt;</td><td>[% LxERP.t8("Customer's/vendor's IBAN") %]</td></tr>
107    <tr><td>&lt;%mandator_id%&gt;</td><td>[% LxERP.t8("Customer's SEPA mandator ID") %]</td></tr>
108    <tr><td>&lt;%mandate_date_of_signature%&gt;</td><td>[% LxERP.t8("Customer's Mandate Date of Signature") %]</td></tr>
109    <tr><td>&lt;%account_number%&gt;</td><td>[% LxERP.t8("Customer's/vendor's account number") %]</td></tr>
110    <tr><td>&lt;%bank_code%&gt;</td><td>[% LxERP.t8("Customer's/vendor's bank code") %]</td></tr>
111   </table>
112  </form>