5 [% IF vc == 'vendor' %]
6 [% SET is_vendor = 1 %]
10 [% SET is_vendor = 0 %]
15 <p><div class="listtop">[% title %]: [% HTML.escape(export.ids.join(', ')) %]</div></p>
17 <form action="sepa.pl" method="post">
18 <input type="hidden" name="action" value="dispatcher">
23 [%- IF show_post_payments_button %]
24 <th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
26 <th class="listheading">[% 'Invoice' | $T8 %]</th>
27 <th class="listheading">[%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
29 <th class="listheading" colspan="2">[% 'Source bank account' | $T8 %]</th>
30 <th class="listheading" colspan="2">[% 'Target bank account' | $T8 %]</th>
32 <th class="listheading" colspan="2">[% 'Target bank account' | $T8 %]</th>
33 <th class="listheading" colspan="2">[% 'Source bank account' | $T8 %]</th>
35 <th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
36 [% IF vc == 'customer' %]
37 <th class="listheading" align="right">[% 'Mandator ID' | $T8 %]</th>
39 <th class="listheading">[% 'Reference' | $T8 %]</th>
40 <th class="listheading" align="right">[% 'Requested execution date' | $T8 %]</th>
41 <th class="listheading" align="right">[% 'Execution date' | $T8 %]</th>
44 <th class="listheading" colspan="[% IF show_post_payments_button %]3[% ELSE %]2[% END %]"> </th>
45 <th class="listheading">[% 'IBAN' | $T8 %]</th>
46 <th class="listheading">[% 'BIC' | $T8 %]</th>
47 <th class="listheading">[% 'IBAN' | $T8 %]</th>
48 <th class="listheading">[% 'BIC' | $T8 %]</th>
49 [%- IF show_post_payments_button %]
50 <th class="listheading" colspan="[% IF vc == 'customer' %]4[% ELSE %]3[% END %]"> </th>
51 <th class="listheading">
52 [% L.date_tag('set_all_execution_date', '', onchange='set_all_execution_date_fields(this);') %]
55 <th class="listheading" colspan="4"> </th>
59 [%- FOREACH item = export.items %]
60 <tr class="listrow[% loop.count % 2 %]">
61 [%- IF show_post_payments_button %]
62 <input type="hidden" name="items[+].id" value="[% HTML.escape(item.id) %]">
63 <input type="hidden" name="items[].sepa_export_id" value="[% HTML.escape(item.sepa_export_id) %]">
65 [%- UNLESS item.executed %]
66 <input type="checkbox" name="items[].selected" value="1">
71 <a href="[% IF item.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&type=invoice&id=[% IF is_vendor %][% HTML.url(item.ap_id) %][% ELSE %][% HTML.url(item.ar_id) %][% END %]">[% HTML.escape(item.invnumber) %]</a>
73 <td>[% HTML.escape(item.vc_name) %]</td>
74 <td>[% HTML.escape(item.our_iban) %]</td>
75 <td>[% HTML.escape(item.our_bic) %]</td>
76 <td>[% HTML.escape(item.vc_iban) %]</td>
77 <td>[% HTML.escape(item.vc_bic) %]</td>
78 <td align="right">[% HTML.escape(LxERP.format_amount(item.amount, 2)) %]</td>
79 [% IF vc == 'customer' %]
80 <td>[% HTML.escape(item.mandator_id) %]</td>
82 <td>[% HTML.escape(item.reference) %]</td>
83 <td align="right">[% HTML.escape(item.requested_execution_date) %]</td>
84 <td align="right" nowrap>
85 [%- IF item.executed %]
86 [% HTML.escape(item.execution_date) %]
87 [%- ELSIF item.export_closed %]
88 [% 'not executed' | $T8 %]
90 [% L.date_tag('items[].execution_date', item.requested_execution_date || current_date) %]
100 [%- IF show_post_payments_button %]
102 <input type="submit" class="submit" name="action_bank_transfer_post_payments" value="[% 'Post payments' | $T8 %]">
105 <script type="text/javascript">
107 function set_all_execution_date_fields(input) {
108 var new_date = $(input).val();
109 $('INPUT[name="items[].execution_date"]').each(function() {
110 $(this).val(new_date);
115 $("#select_all").checkall('INPUT[name="items[].selected"]');
122 <input type="submit" class="submit" name="action_bank_transfer_payment_list_as_pdf" value="[% 'Payment list as PDF' | $T8 %]">
125 [%- FOREACH item = export.items %]
126 [%- IF item.executed %]
127 <input type="hidden" name="items[+].id" value="[% HTML.escape(item.id) %]">
128 <input type="hidden" name="items[].export_id" value="[% HTML.escape(item.export_id) %]">
133 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">