2017-01-15 22:03:06 +01:00
|
|
|
% title 'Account report';
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr><th>Date</th><th>Value</th><th>Purpose</th></tr>
|
2017-01-25 22:38:39 +01:00
|
|
|
% my $total;
|
2017-01-15 22:03:06 +01:00
|
|
|
% while ( my $record = $report->next ) {
|
2017-01-25 22:38:39 +01:00
|
|
|
% $total += $record->value;
|
2017-01-15 22:03:06 +01:00
|
|
|
<tr><td><%= $record->date %></td><td class="number"><%== money $record->value %></td><td><%== nl2br $record->purpose %></td></tr>
|
|
|
|
% }
|
2017-01-25 22:38:39 +01:00
|
|
|
<tr><td style="text-align:right;">In total:</td><td class="number"><%== money $total %></td></tr>
|
2017-01-15 22:03:06 +01:00
|
|
|
</table>
|