]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/acc_trans/_mini_ledger.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / acc_trans / _mini_ledger.html
1 [% USE L %]
2 [% USE LxERP %]
3 [% USE HTML %]
4
5 <div class="wrapper">
6
7 <table id="acc_trans" class="tbl-list">
8   <caption>[% HTML.escape(title) %]</caption>
9   <thead>
10     <tr>
11       <th class="date">[% LxERP.t8("Date") %]</th>
12       <th class="center">[% LxERP.t8("Chart") %]</th>
13       <th>[% LxERP.t8("Description") %]</th>
14       <th class="right">[% LxERP.t8("Debit") %]</th>
15       <th class="right">[% LxERP.t8("Credit") %]</th>
16     </tr>
17   </thead>
18   <tbody>
19     [% FOREACH transaction = TRANSACTIONS %]
20     <tr>
21       <td class="date">[% transaction.transdate.to_kivitendo %]</td>
22       <td class="center">[% transaction.chart.accno %]</td>
23       <td>[% transaction.chart.description %]</td>
24       <td class="numeric">[% IF transaction.amount < 0 %] [% LxERP.format_amount(transaction.amount * -1, 2) %] [% END %]</td>
25       <td class="numeric">[% IF transaction.amount > 0 %] [% LxERP.format_amount(transaction.amount , 2) %] [% END %]</td>
26     </tr>
27     [% END %]
28   </tbody>
29   <tfoot>
30     <tr>
31      <td colspan="2"></td>
32      <th>[% LxERP.t8("Total") %]</th>
33      <td class="numeric">[% LxERP.format_amount(debit_sum * -1, 2) %]</td>
34      <td class="numeric">[% LxERP.format_amount(credit_sum, 2) %]</td>
35     </tr>
36   </tfoot>
37 </table>
38
39 </div><!-- /.wrapper -->