Sort solution by date in output.
This commit is contained in:
parent
afe912f163
commit
e87b6abb7f
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue