% title 'Transfer history';
Reverse ordered list:
Timestamp | Purpose (own/other/debit) | debit | credit |
---|---|---|---|
<%= $hr->date %> |
% my $that = $hr->that_credit;
% my $this = $hr->this_credit;
% my $credit_ref = begin
%== sprintf q{%s%d}, shift() ? ($that->account->ID.q{.}, $that->credId) : (q{}, $this->credId)
% end
<%= $hr->billId %>: <%= $hr->purpose %> → <%== $credit_ref->($hr->debit) %> from <%= $credit_ref->($hr->credit) %>, <%= $hr->credit ? $that->purpose : $this->purpose %>
% if ( $hr->note ) {
| <%== money $hr->debit %> | <%== money $hr->credit %> |