summaryrefslogtreecommitdiff
path: root/contrib/non-profit-audit-reports/bank-reconcilation.plx
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/non-profit-audit-reports/bank-reconcilation.plx')
-rwxr-xr-xcontrib/non-profit-audit-reports/bank-reconcilation.plx2
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";