1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2 <h1>[% FORM.title %]</h1>
4 [%- INCLUDE 'common/flash.html' %]
6 <form method="post" action="controller.pl">
7 [% IF !PAYMENT_TERMS.size %]
9 [%- 'No payment term has been created yet.' | $T8 %]
13 <table id="payment_term_list">
15 <tr class="listheading">
16 <th align="center"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
17 <th>[%- 'Description' | $T8 %]</th>
18 <th>[%- 'Long Description (quotations & orders)' | $T8 %]</th>
19 <th>[%- 'Long Description (invoices)' | $T8 %]</th>
20 <th>[% 'Automatic date calculation' | $T8 %]</th>
21 <th align="right">[%- 'Netto Terms' | $T8 %]</th>
22 <th align="right">[%- 'Skonto Terms' | $T8 %]</th>
23 <th align="right">[%- 'Skonto' | $T8 %]</th>
24 <th align="right">[%- 'Obsolete' | $T8 %]</th>
29 [%- FOREACH payment_term = PAYMENT_TERMS %]
30 <tr class="listrow[% loop.count % 2 %]" id="payment_term_id_[% payment_term.id %]">
31 <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
33 <a href="[% SELF.url_for(action => 'edit', id => payment_term.id) %]">
34 [%- HTML.escape(payment_term.description) %]
37 <td>[%- HTML.escape(payment_term.description_long) %]</td>
38 <td>[%- HTML.escape(payment_term.description_long_invoice) %]</td>
39 <td>[% IF payment_term.auto_calculation %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %]</td>
40 <td align="right">[%- HTML.escape(payment_term.terms_netto_as_number) %]</td>
41 <td align="right">[%- HTML.escape(payment_term.terms_skonto_as_number) %]</td>
42 <td align="right">[%- HTML.escape(payment_term.percent_skonto_as_percent) %] %</td>
43 <td align="right">[%- HTML.escape(payment_term.obsolete) %]</td>
51 [% L.sortable_element('#payment_term_list tbody', url => 'controller.pl?action=PaymentTerm/reorder', with => 'payment_term_id') %]