--- /dev/null
+[%- USE T8 -%][%- USE HTML -%][%- USE LxERP -%][%- USE P -%][%- USE L -%]
+[%- IF !INVOICES.size %]
+ <p class="message_hint">[% 'No data was found.' | $T8 %]</p>
+[%- ELSE %]
+ <table width="100%">
+ <tr class="listheading">
+ <th>[% L.checkbox_tag('invoices_check_all') %]</th>
+ <th>[%- LxERP.t8("Invoice number") %]</th>
+ <th>[%- LxERP.t8("Amount") %]</th>
+ <th>[%- LxERP.t8("Open amount") %]</th>
+ <th>[%- LxERP.t8("Transdate") %]</th>
+ <th>[%- LxERP.t8("Customer/Vendor number") %]</th>
+ <th>[%- LxERP.t8("Customer/Vendor name") %]</th>
+ </tr>
+
+ [%- FOREACH invoice = INVOICES %]
+ <tr class="listrow[% loop.count % 2 %]">
+ <td>[% L.checkbox_tag('invoice_id[]', value=invoice.id) %]</td>
+ <td>[%- invoice.invnumber %]</td>
+ <td align="right">[%- LxERP.format_amount(invoice.amount, 2) %]</td>
+ <td align="right">[%- LxERP.format_amount(invoice.amount - invoice.paid, 2) %]</td>
+ <td align="right">[%- invoice.transdate_as_date %]</td>
+ <td>[%- invoice.vendor.vendornumber %][%- invoice.customer.customernumber %]</td>
+ <td>[%- invoice.vendor.name %][%- invoice.customer.name %]</td>
+ </tr>
+ [%- END %]
+ </table>
+
+<script type="text/javascript">
+<!--
+$(function() {
+ $('#invoices_check_all').checkall('INPUT[name="invoice_id[]"]');
+ });
+-->
+</script>
+[%- END %]
+