% title 'Transfer history';

Reverse ordered list:

% while ( my $hr = $history->next ) { % }
TimestampPurpose (own/other/debit)debitcreditnote
<%= $hr->date %> % my $this = $hr->this_credit; On <%= <%= $this->credId %>: <%== nl2br $this->purpose %>
% my $that = $hr->that_credit; With <%= $that->account->ID %>/<%= <%= $that->credId %>: <%== nl2br $that->purpose %>
Pay <%= $hr->billId %>: <%== nl2br $hr->purpose %>
<%== money $hr->debit %><%== money $hr->credit %><%= $hr->note %>