diff options
author | Bradley M. Kuhn <bkuhn@ebb.org> | 2013-02-16 21:28:27 -0500 |
---|---|---|
committer | Bradley M. Kuhn <bkuhn@ebb.org> | 2013-02-18 14:08:46 -0500 |
commit | e87b6abb7f1c7bfd7a626ba5d27dc03fd48f701b (patch) | |
tree | e42be96a15065a73262f1ffeabee7ccf259c8c78 /contrib/non-profit-audit-reports | |
parent | afe912f163da2259f29bfd3ac3f5bfbc50190156 (diff) | |
download | fork-ledger-e87b6abb7f1c7bfd7a626ba5d27dc03fd48f701b.tar.gz fork-ledger-e87b6abb7f1c7bfd7a626ba5d27dc03fd48f701b.tar.bz2 fork-ledger-e87b6abb7f1c7bfd7a626ba5d27dc03fd48f701b.zip |
Sort solution by date in output.
Diffstat (limited to 'contrib/non-profit-audit-reports')
-rwxr-xr-x | contrib/non-profit-audit-reports/bank-reconcilation.plx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/non-profit-audit-reports/bank-reconcilation.plx b/contrib/non-profit-audit-reports/bank-reconcilation.plx index 2a3d0d38..7a8da911 100755 --- a/contrib/non-profit-audit-reports/bank-reconcilation.plx +++ b/contrib/non-profit-audit-reports/bank-reconcilation.plx @@ -220,7 +220,7 @@ if ($solution[0]) { print "\"title:$formattedEndDate: $title\"\n\"BANK RECONCILATION: $account\",\"ENDING\",\"$formattedEndDate\"\n"; print "\n\n\"DATE\",\"CHECK NUM\",\"PAYEE\",\"AMOUNT\"\n\n"; print "\"$formattedEndDate\",\"\",\"BANK ACCOUNT BALANCE\",\"\$$bankBalance\"\n\n"; - foreach my $ee (@{$solution[1]}) { + foreach my $ee (sort { $a->{date} cmp $b->{date} } @{$solution[1]}) { print "\"$ee->{date}\",\"$ee->{checkNum}\",\"$ee->{payee}\",\"\$$ee->{amount}\"\n"; } print "\n\"$formattedEndDate\",\"\",\"OUR ACCOUNT BALANCE\",\"\$$total\"\n\n"; |