5 <div class="listtop">[%- HTML.escape(title) %]</div>
7 <div id="sales_report">
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' | $T8 %]</td>
20 [%- FOREACH row = OPEN_ITEMS %]
21 <tr class="listrow[% loop.count % 2 %]">
22 <td>[% row.invnumber | html %]</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.duedate.to_kivitendo | html %] -- [% dun.dunning_level | html %] -- [% dun.fee %]<br>