Revision fb5fdeab
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/acc_trans/_mini_ledger.html | ||
---|---|---|
1 | 1 |
[% USE L %] |
2 | 2 |
[% USE LxERP %] |
3 | 3 |
[% USE HTML %] |
4 |
<div class="listtop">[%- HTML.escape(title) %]</div> |
|
5 | 4 |
|
6 |
<div style="padding-bottom: 15px"> |
|
7 |
<table id="acc_trans"> |
|
5 |
<div class="wrapper"> |
|
6 |
|
|
7 |
<table id="acc_trans" class="tbl-list"> |
|
8 |
<caption>[% HTML.escape(title) %]</caption> |
|
8 | 9 |
<thead> |
9 |
<tr> |
|
10 |
<th class="listheading">[%- LxERP.t8("Date") %]</th>
|
|
11 |
<th class="listheading">[%- LxERP.t8("Chart") %]</th>
|
|
12 |
<th class="listheading">[%- LxERP.t8("Description") %]</th>
|
|
13 |
<th class="listheading">[%- LxERP.t8("Debit") %]</th>
|
|
14 |
<th class="listheading">[%- LxERP.t8("Credit") %]</th>
|
|
15 |
</tr> |
|
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>
|
|
16 | 17 |
</thead> |
17 |
|
|
18 | 18 |
<tbody> |
19 |
[%- FOREACH transaction = TRANSACTIONS %] |
|
20 |
<tr class="listrow[% loop.count % 2 %]"> |
|
21 |
<td>[%- transaction.transdate.to_kivitendo -%]</td> |
|
22 |
<td align="right">[%- transaction.chart.accno -%]</td> |
|
23 |
<td>[%- transaction.chart.description -%]</td> |
|
24 |
<td align="right">[%- IF transaction.amount < 0 %] [%- LxERP.format_amount(transaction.amount * -1, 2) %] [% END %]</td> |
|
25 |
<td align="right">[%- IF transaction.amount > 0 %] [%- LxERP.format_amount(transaction.amount , 2) %] [%- END -%]</td> |
|
26 |
</tr> |
|
27 |
[%- END %] |
|
28 |
<td colspan="2"></td> |
|
29 |
<td align="right"><b>[%- LxERP.t8("Total") %]:</b></td> |
|
30 |
<td align="right"><b>[%- LxERP.format_amount(debit_sum * -1, 2) %]</b></td> |
|
31 |
<td align="right"><b>[%- LxERP.format_amount(credit_sum, 2) %]</b></td> |
|
32 |
</tr> |
|
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 %] |
|
33 | 28 |
</tbody> |
34 |
</table> |
|
35 |
<div> |
|
29 |
<tfoot> |
|
30 |
<td colspan="2"></td> |
|
31 |
<th>[% LxERP.t8("Total") %]</th> |
|
32 |
<td class="numeric">[% LxERP.format_amount(debit_sum * -1, 2) %]</td> |
|
33 |
<td class="numeric">[% LxERP.format_amount(credit_sum, 2) %]</td> |
|
34 |
</tr> |
|
35 |
</tfoot> |
|
36 |
</table> |
|
37 |
|
|
38 |
</div><!-- /.wrapper --> |
|
39 |
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/acc_trans/_mini_ledger.html