Correct sorting of output in trial balance report.
This commit is contained in:
parent
2142a36c1c
commit
6d98bc58ae
1 changed files with 6 additions and 3 deletions
|
|
@ -430,10 +430,13 @@ my $curOn = 'Assets';
|
|||
foreach my $account (sort preferredAccountSorting keys %fullAccountList) {
|
||||
# Blank lines right
|
||||
if ($account !~ /^$curOn/) {
|
||||
print TRIAL "\n";
|
||||
print TRIAL "pagebreak\n";
|
||||
$curOn = $account;
|
||||
$curOn =~ s/^([^:]+):.*$/$1/;
|
||||
print "CurOn now: $curOn\n";
|
||||
if ($curOn =~ /(Accrued:[^:]+):.*$/) {
|
||||
$curOn = $1;
|
||||
} else {
|
||||
$curOn =~ s/^([^:]+):.*$/$1/;
|
||||
}
|
||||
}
|
||||
if ($account =~ /^Assets|Liabilities|Accrued|Unearned Income/) {
|
||||
foreach my $id (qw/totalBeginFY totalEndFY amountInYear/) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue