[% L.hidden_tag('action', 'BankTransaction/dispatch') %]
[% L.hidden_tag('ui_tab', ui_tab) %]
-<table>
+<table id="bank_transactions_proposals">
<thead>
<tr class="listheading">
<th>[% L.checkbox_tag('check_all') %]</th>
<td>[% proposal.transdate_as_date %]</td>
<td align="right">[% LxERP.format_amount(proposal.amount,2) %]</td>
<td></td>
- <td>[% HTML.escape(proposal.purpose) %]</td>
+ <td>
+ [% SET purpose = HTML.escape(proposal.purpose)
+ invnumber_found = '' ;
+ FOREACH proposed_invoice = proposal.proposals;
+ IF purpose.match(proposed_invoice.invnumber);
+ SET invnumber_found = proposed_invoice.invnumber ;
+ END ;
+ END ;
+
+ IF invnumber_found ;
+ purpose.replace(invnumber_found, '<span class="invoice_number_highlight">' _ invnumber_found _ '</span>') ;
+ ELSE ;
+ purpose ;
+ END %]
+ </td>
<td>[% HTML.escape(proposal.remote_name) %]</td>
</tr>
<td align="right">[% proposed_invoice.realamount %]</td>
<td>[% proposed_invoice.skonto_type | $T8 %]
[% L.hidden_tag("invoice_skontos." _ proposal.id _ "[]", proposed_invoice.skonto_type) %]</td>
- <td>[% proposed_invoice.link %]</td>
+ <td[% IF proposed_invoice.invnumber == invnumber_found %] class="invoice_number_highlight"[% END %]>[% proposed_invoice.link %]</td>
<td>[% HTML.escape(proposed_invoice.customer.name) %][% HTML.escape(proposed_invoice.vendor.name) %]</td>
</tr>
[% END %]
- <tr><td style="height:10px"></td></tr>
+ <tr><td style="height:10px" colspan="8"></td></tr>
</tbody>
[% END %]
[% END %]