1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
3 [% IF SELF.ELEMENTS.size %]
6 <tr class="listheading">
8 <th>[% 'ID' | $T8 %]</th>
9 <th>[% 'Type' | $T8 %]</th>
10 <th>[% 'Transdate' | $T8 %]</th>
11 <th>[% 'Amount BT' | $T8 %]</th>
12 <th>[% 'Amount BB' | $T8 %]</th>
15 [% FOREACH element = SELF.ELEMENTS %]
16 <tbody id="assigned_elements">
17 <tr class="listrow" id='element[% element.type %][% element.id %]'>
18 <td><a href=# onclick="delete_element('[% element.id %]', '[% element.type %]')">x</a></td>
19 <td>[% HTML.escape(element.id) %]</td>
20 <td>[% IF element.type == 'BT' %][% 'Bank transaction' | $T8 %][% ELSE %][% 'Acc transaction' | $T8 %][% END %]</td>
21 <td>[% HTML.escape(element.transdate_as_date) %]</td>
22 <td align="right">[% IF element.type == 'BT' %][% HTML.escape(element.amount_as_number) %][% END %]</td>
23 <td align="right">[% IF element.type == 'BB' %][% LxERP.format_amount(-1 * element.amount, 2) %][% END %]</td>
29 <td class="listtotal top_border"></td>
30 <td class="listtotal top_border"></td>
31 <td class="listtotal top_border"></td>
32 <td class="listtotal top_border"></td>
33 <td class="listtotal top_border">[% bt_sum %]</td>
34 <td class="listtotal top_border">[% bb_sum %]</td>
39 [% L.button_tag("submit_with_action('reconcile')", LxERP.t8("Reconcile")) %]
41 [% FOREACH error IN errors %]