Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision fb5fdeab

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID fb5fdeabee0299cd1036e21fcb1d67b19d8e801a
  • Vorgänger 855172a8
  • Nachfolger f1241e1f

Neues Design 2019 Standard-Code templates/webpages/acc_trans/_mini_ledger.html

Unterschiede anzeigen:

templates/webpages/acc_trans/_mini_ledger.html
[% USE L %]
[% USE LxERP %]
[% USE HTML %]
<div class="listtop">[%- HTML.escape(title) %]</div>
<div style="padding-bottom: 15px">
<table id="acc_trans">
<div class="wrapper">
<table id="acc_trans" class="tbl-list">
<caption>[% HTML.escape(title) %]</caption>
<thead>
<tr>
<th class="listheading">[%- LxERP.t8("Date") %]</th>
<th class="listheading">[%- LxERP.t8("Chart") %]</th>
<th class="listheading">[%- LxERP.t8("Description") %]</th>
<th class="listheading">[%- LxERP.t8("Debit") %]</th>
<th class="listheading">[%- LxERP.t8("Credit") %]</th>
</tr>
<tr>
<th class="date">[% LxERP.t8("Date") %]</th>
<th class="center">[% LxERP.t8("Chart") %]</th>
<th>[% LxERP.t8("Description") %]</th>
<th class="right">[% LxERP.t8("Debit") %]</th>
<th class="right">[% LxERP.t8("Credit") %]</th>
</tr>
</thead>
<tbody>
[%- FOREACH transaction = TRANSACTIONS %]
<tr class="listrow[% loop.count % 2 %]">
<td>[%- transaction.transdate.to_kivitendo -%]</td>
<td align="right">[%- transaction.chart.accno -%]</td>
<td>[%- transaction.chart.description -%]</td>
<td align="right">[%- IF transaction.amount < 0 %] [%- LxERP.format_amount(transaction.amount * -1, 2) %] [% END %]</td>
<td align="right">[%- IF transaction.amount > 0 %] [%- LxERP.format_amount(transaction.amount , 2) %] [%- END -%]</td>
</tr>
[%- END %]
<td colspan="2"></td>
<td align="right"><b>[%- LxERP.t8("Total") %]:</b></td>
<td align="right"><b>[%- LxERP.format_amount(debit_sum * -1, 2) %]</b></td>
<td align="right"><b>[%- LxERP.format_amount(credit_sum, 2) %]</b></td>
</tr>
[% FOREACH transaction = TRANSACTIONS %]
<tr>
<td class="date">[% transaction.transdate.to_kivitendo %]</td>
<td class="center">[% transaction.chart.accno %]</td>
<td>[% transaction.chart.description %]</td>
<td class="numeric">[% IF transaction.amount < 0 %] [% LxERP.format_amount(transaction.amount * -1, 2) %] [% END %]</td>
<td class="numeric">[% IF transaction.amount > 0 %] [% LxERP.format_amount(transaction.amount , 2) %] [% END %]</td>
</tr>
[% END %]
</tbody>
</table>
<div>
<tfoot>
<td colspan="2"></td>
<th>[% LxERP.t8("Total") %]</th>
<td class="numeric">[% LxERP.format_amount(debit_sum * -1, 2) %]</td>
<td class="numeric">[% LxERP.format_amount(credit_sum, 2) %]</td>
</tr>
</tfoot>
</table>
</div><!-- /.wrapper -->

Auch abrufbar als: Unified diff