6a13b9c248fee07727f22c4d364561ca82b57ee7
[kivitendo-erp.git] / templates / webpages / bank_transactions / add_list.html
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>
4 [%- ELSE %]
5   <table width="100%">
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("Amount less skonto") %]</th>
12     <th>[%- LxERP.t8("Invoice Date") %]</th>
13     <th>[%- LxERP.t8("Customer/Vendor Number") %]</th>
14     <th>[%- LxERP.t8("Customer/Vendor Name") %]</th>
15    </tr>
16
17   [%- FOREACH invoice = INVOICES %]
18    <tr class="listrow[% loop.count % 2 %]">
19     <td>[% L.checkbox_tag('invoice_id[]', value=invoice.id) %]</td>
20     <td>[%- invoice.invnumber %]</td>
21     <td align="right">[%- LxERP.format_amount(invoice.amount, 2) %]</td>
22     <td align="right">[%- LxERP.format_amount(invoice.open_amount, 2) %]</td>
23     <td align="right">[%- LxERP.format_amount(invoice.amount_less_skonto, 2) %]</td>
24     <td align="right">[%- invoice.transdate_as_date %]</td>
25     <td>[%- invoice.vendor.vendornumber %][%- invoice.customer.customernumber %]</td>
26     <td>[%- invoice.vendor.name %][%- invoice.customer.name %]</td>
27    </tr>
28   [%- END %]
29   </table>
30
31 <script type="text/javascript">
32 <!--
33 $(function() {
34     $('#invoices_check_all').checkall('INPUT[name="invoice_id[]"]');
35     });
36 -->
37 </script>
38 [%- END %]
39