6 <div id="sales_report">
8 <caption class="listtop">[%- HTML.escape(title) %]</caption>
11 <td class="listheading">[% 'Invoice Number' | $T8 %]</td>
12 <td class="listheading">[% 'Invoice Date' | $T8 %]</td>
13 <td class="listheading">[% 'Amount' | $T8 %]</td>
14 <td class="listheading">[% 'Inv. Duedate' | $T8 %]</td>
15 <td class="listheading">[% 'Paid' | $T8 %]</td>
16 <td class="listheading">[% 'Open Amount' | $T8 %]</td>
17 <td class="listheading">[% 'Dunnings (Id -- Dunning Date --Dunning Level -- Dunning Fee)' | $T8 %]</td>
20 [%- FOREACH row = OPEN_ITEMS %]
21 <tr class="listrow[% loop.count % 2 %]">
22 <td><a href="[% IF row.type == 'invoice' || row.type == 'credit_note' %]is.pl[% ELSE %]ar.pl[% END %]?action=edit&id=[% row.id %]#ui-tabs-basic-data">[% row.invnumber | html %]</a></td>
23 <td>[% row.transdate.to_kivitendo | html %]</td>
24 <td>[%- LxERP.format_amount(row.amount, 2) %]</td>
25 <td>[% row.duedate.to_kivitendo | html %]</td>
26 <td>[%- LxERP.format_amount(row.paid, 2) %]</td>
27 <td>[%- LxERP.format_amount(row.amount - row.paid,2) %]
29 [%- IF row.dunning_config_id != '' %]
30 [%- FOREACH dun = row.dunnings %]
31 [% dun.dunning_id | html %] -- [% dun.transdate.to_kivitendo | html %] -- [% dun.dunning_level | html %] -- [%- LxERP.format_amount(dun.fee, 2) %]<br>