1 [%- USE T8 -%][%- USE HTML -%][%- USE LxERP -%][%- USE P -%][%- USE L -%]
2 [%- IF !INVOICES.size %]
3 <p class="message_hint">[% 'No data was found.' | $T8 %]</p>
6 <tr class="listheading">
7 <th>[% L.checkbox_tag('invoices_check_all') %]</th>
8 <th>[%- LxERP.t8("Invoice number") %]</th>
9 <th>[%- LxERP.t8("Amount") %]</th>
10 <th>[%- LxERP.t8("Open amount") %]</th>
11 <th>[%- LxERP.t8("Transdate") %]</th>
12 <th>[%- LxERP.t8("Customer/Vendor number") %]</th>
13 <th>[%- LxERP.t8("Customer/Vendor name") %]</th>
16 [%- FOREACH invoice = INVOICES %]
17 <tr class="listrow[% loop.count % 2 %]">
18 <td>[% L.checkbox_tag('invoice_id[]', value=invoice.id) %]</td>
19 <td>[%- invoice.invnumber %]</td>
20 <td align="right">[%- LxERP.format_amount(invoice.amount, 2) %]</td>
21 <td align="right">[%- LxERP.format_amount(invoice.amount - invoice.paid, 2) %]</td>
22 <td align="right">[%- invoice.transdate_as_date %]</td>
23 <td>[%- invoice.vendor.vendornumber %][%- invoice.customer.customernumber %]</td>
24 <td>[%- invoice.vendor.name %][%- invoice.customer.name %]</td>
29 <script type="text/javascript">
32 $('#invoices_check_all').checkall('INPUT[name="invoice_id[]"]');