epic-ts
[kivitendo-erp.git] / templates / webpages / acc_trans / _mini_ledger.html
1 [% USE L %] [%- USE LxERP %] [%- USE HTML %]
2 <div class="listtop">[%- HTML.escape(title) %]</div>
3
4 <div style="padding-bottom: 15px">
5  <table id="acc_trans">
6   <thead>
7    <tr>
8     <th class="listheading">[%- LxERP.t8("Date") %]</th>
9     <th class="listheading">[%- LxERP.t8("Chart") %]</th>
10     <th class="listheading">[%- LxERP.t8("Description") %]</th>
11     <th class="listheading">[%- LxERP.t8("Debit") %]</th>
12     <th class="listheading">[%- LxERP.t8("Credit") %]</th>
13    </tr>
14   </thead>
15
16   <tbody>
17    [%- FOREACH transaction = TRANSACTIONS %]
18    <tr class="listrow[% loop.count % 2 %]">
19     <td>[%- transaction.transdate.to_kivitendo -%]</td>
20     <td align="right">[%- transaction.chart.accno -%]</td>
21     <td>[%- transaction.chart.description -%]</td>
22     <td align="right">[%- IF transaction.amount < 0 %] [%- LxERP.format_amount(transaction.amount * -1, 2) %] [% END %]</td>
23     <td align="right">[%- IF transaction.amount > 0 %] [%- transaction.amount_as_number -%] [%- END -%]</td>
24    </tr>
25    [%- END %]
26     <td colspan="2"></td>
27     <td align="right"><b>[%- LxERP.t8("Total") %]:</b></td>
28     <td align="right"><b>[%- LxERP.format_amount(debit_sum * -1, 2) %]</b></td>
29     <td align="right"><b>[%- LxERP.format_amount(credit_sum, 2) %]</b></td>
30    </tr>
31   </tbody>
32  </table>
33  <div>