5aaff598d1
==================================================== * Account upsertion * Empty credit and debit forms, the latter with the ability to charge groups * Fixed redirection on posting transfers * Reverse order of credits and debits * Style: prevent monospace size reduction in some browsers; td.mark class * Totals in report and and bankStatement
12 lines
412 B
Plaintext
12 lines
412 B
Plaintext
% title 'Account report';
|
|
|
|
<table>
|
|
<tr><th>Date</th><th>Value</th><th>Purpose</th></tr>
|
|
% my $total;
|
|
% while ( my $record = $report->next ) {
|
|
% $total += $record->value;
|
|
<tr><td><%= $record->date %></td><td class="number"><%== money $record->value %></td><td><%== nl2br $record->purpose %></td></tr>
|
|
% }
|
|
<tr><td style="text-align:right;">In total:</td><td class="number"><%== money $total %></td></tr>
|
|
</table>
|