% 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
% my $that_acc = $that && $that->account;
% my $that_account_id = $that ? $that_acc->ID : q{(out)};
% my $that_credit_id = $that ? $that->credId : "";
%== sprintf q{%s%d}, shift() ? ($that_account_id.q{:}, $that_credit_id) : (q{}, $this->credId)
% end
<%= $hr->billId %>: <%== nl2br $hr->purpose %> → <%== $credit_ref->($hr->debit) %> ↑ <%= $credit_ref->($hr->credit) =%>, <%= $hr->credit ? $that->purpose : $this->purpose %>
% if ( $hr->note ) {
| <%== money $hr->debit %> | <%== money $hr->credit %> |