0f62e6eaa516a582b0b5e2ca5872853a14ff882b
[kivitendo-erp.git] / templates / webpages / customer_vendor_turnover / _list_open_items.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE L %]
4 [%- USE HTML %]
5
6 <div id="sales_report">
7   <table width="100%">
8     <caption class="listtop">[%- HTML.escape(title) %]</caption>
9     <tbody>
10       <tr>
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>
18       </tr>
19
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) %]
28         <td>
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>
32           [% END %]
33         [% END %]
34         </td>
35       </tr>
36       [% END %]
37     </tbody>
38   </table>
39 </div>