1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
3 <form method="post" id="list_automatic_form">
4 [% L.hidden_tag('filter.bank_account', FORM.filter.bank_account) %]
5 [% L.hidden_tag('filter.fromdate', FORM.filter.fromdate) %]
6 [% L.hidden_tag('filter.todate', FORM.filter.todate) %]
7 [% L.hidden_tag('action', 'BankTransaction/dispatch') %]
8 [% L.hidden_tag('ui_tab', ui_tab) %]
10 <table id="bank_transactions_proposals">
12 <tr class="listheading">
13 <th>[% L.checkbox_tag('check_all') %]</th>
15 <th>[% 'Type' | $T8 %]</th>
16 <th>[% 'ID' | $T8 %]</th>
17 <th>[% 'Transdate' | $T8 %]</th>
18 <th>[% 'Amount' | $T8 %]</th>
19 <th>[% 'Skonto' | $T8 %]</th>
20 <th>[% 'Purpose/Reference' | $T8 %]</th>
21 [% IF INSTANCE_CONF.get_create_qrbill_invoices == 1 %]
22 <th>[% 'QR reference' | $T8 %]</th>
24 <th>[% 'Customer/Vendor/Remote name' | $T8 %]</th>
25 <th>[% LxERP.t8("Source") %]</th>
26 <th>[% LxERP.t8("Memo") %]</th>
29 [% IF !PROPOSALS.size %]
30 <tbody class="listrow">
31 <td colspan="7"><p class="message_hint">[% 'No data was found.' | $T8 %]</p></td>
34 [% FOREACH proposal = PROPOSALS %]
35 <tbody class="listrow">
37 <td rowspan=[% proposal.rowspan %] style="valign:center;">
38 [% L.checkbox_tag('proposal_ids[]', checked=0, value=proposal.id) %]
41 <td>[% HTML.escape(proposal.transaction_text) %]</td>
42 <td>[% proposal.id %]</td>
43 <td>[% proposal.transdate_as_date %]</td>
44 <td align="right">[% LxERP.format_amount(proposal.amount,2) %]</td>
47 [% SET purpose = HTML.escape(proposal.purpose)
48 invnumber_found = '' ;
49 FOREACH proposed_invoice = proposal.proposals;
50 IF purpose.match(proposed_invoice.invnumber);
51 SET invnumber_found = proposed_invoice.invnumber ;
56 purpose.replace(invnumber_found, '<span class="invoice_number_highlight">' _ invnumber_found _ '</span>') ;
61 [% IF INSTANCE_CONF.get_create_qrbill_invoices == 1 %]
63 [% SET qr_reference = HTML.escape(proposal.qr_reference)
64 qr_reference_found = '';
65 FOREACH proposed_invoice = proposal.proposals;
66 IF qr_reference.match(proposed_invoice.qr_reference);
67 SET qr_reference_found = proposed_invoice.qr_reference;
71 IF qr_reference_found;
72 qr_reference.replace(qr_reference_found, '<span class="qr_reference_highlight">' _ qr_reference_found _ '</span>');
78 <td>[% HTML.escape(proposal.remote_name) %]</td>
83 [% FOREACH proposed_invoice = proposal.proposals %]
87 <td>[% 'Invoice' | $T8 %]</td>
88 <td>[% proposed_invoice.id %]</td>
89 <td>[% proposed_invoice.transdate_as_date %]
90 [% L.hidden_tag("invoice_ids." _ proposal.id _ "[]", proposed_invoice.id) %]</td>
91 <td align="right">[% proposed_invoice.realamount %]</td>
93 [% IF proposal.rule_matches.0.match('skonto_exact_amount') %]
94 [% 'with_skonto_pt' | $T8 %]
95 [% L.hidden_tag("invoice_skontos." _ proposal.id _ "[]", 'with_skonto_pt') %]</td>
96 [% ELSIF proposal.rule_matches.0.match('skonto_fuzzy_amount') %]
97 [% 'with_fuzzy_skonto_pt' | $T8 %]
98 [% L.hidden_tag("invoice_skontos." _ proposal.id _ "[]", 'with_fuzzy_skonto_pt') %]</td>
100 <td[% IF proposed_invoice.invnumber == invnumber_found %] class="invoice_number_highlight"[% END %]>[% proposed_invoice.link %]</td>
101 [% IF INSTANCE_CONF.get_create_qrbill_invoices == 1 %]
103 [% IF proposed_invoice.qr_reference == proposal.qr_reference %]
104 <span class="qr_reference_highlight">[% HTML.escape(proposed_invoice.qr_reference) %]</span>
106 [% HTML.escape(proposed_invoice.qr_reference) %]
110 <td>[% HTML.escape(proposed_invoice.customer.name) %][% HTML.escape(proposed_invoice.vendor.name) %]</td>
111 <td>[% L.input_tag("sources." _ proposal.id _ "[]", "", size=20) %]</td>
112 <td>[% L.input_tag("memos." _ proposal.id _ "[]", "", size=20) %]</td>
115 <tr><td style="height:10px" colspan="10"></td></tr>
122 [% L.submit_tag('action_save_proposals', LxERP.t8('Save proposals')) %]
123 [% L.button_tag('kivi.BankTransaction.show_set_all_sources_memos_dialog("#list_automatic_form [name^=\\"sources.\\"]", "#list_automatic_form [name^=\\"memos.\\"]")', LxERP.t8('Set all source and memo fields')) %]