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 %]
15 <table id="payment_term_list" class="tbl-list wi-moderate">
17 <col class="wi-smallest">
21 <col class="wi-small">
22 <col class="wi-small">
23 <col class="wi-small">
24 <col class="wi-verysmall">
25 <col class="wi-verysmall">
29 <th> <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"> </th>
30 <th> [%- 'Description' | $T8 %] </th>
31 <th> [%- 'Long Description (quotations & orders)' | $T8 %] </th>
32 <th> [%- 'Long Description (invoices)' | $T8 %] </th>
33 <th class="center"> [% 'Automatic date calculation' | $T8 %] </th>
34 <th class="center"> [%- 'Netto Terms' | $T8 %] </th>
35 <th class="center"> [%- 'Skonto Terms' | $T8 %] </th>
36 <th class="center"> [%- 'Skonto' | $T8 %] </th>
37 <th class="center"> [%- 'Obsolete' | $T8 %] </th>
41 [%- FOREACH payment_term = PAYMENT_TERMS %]
42 <tr id="payment_term_id_[% payment_term.id %]">
43 <td class="dragdrop"> <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"> </td>
44 <td> <a href="[% SELF.url_for(action => 'edit', id => payment_term.id) %]"> [%- HTML.escape(payment_term.description) %] </a> </td>
45 <td> [%- HTML.escape(payment_term.description_long) %] </td>
46 <td> [%- HTML.escape(payment_term.description_long_invoice) %] </td>
47 <td class="center"> [% IF payment_term.auto_calculation %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %] </td>
48 <td class="center"> [%- HTML.escape(payment_term.terms_netto_as_number) %] </td>
49 <td class="center"> [%- HTML.escape(payment_term.terms_skonto_as_number) %] </td>
50 <td class="center"> [%- HTML.escape(payment_term.percent_skonto_as_percent) %] % </td>
51 <td class="center"> [%- HTML.escape(payment_term.obsolete) %] </td>
60 [% L.sortable_element('#payment_term_list tbody', url => 'controller.pl?action=PaymentTerm/reorder', with => 'payment_term_id') %]