summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBradley M. Kuhn <bkuhn@ebb.org>2013-01-06 19:28:46 -0500
committerBradley M. Kuhn <bkuhn@ebb.org>2013-01-06 19:28:46 -0500
commit6d98bc58ae555d5d4487e7ee90c6ce8b2a49cbe6 (patch)
tree7f3682ca9c5f911ef850f5a237319b76fe416cf5 /contrib
parent2142a36c1c81bae4ea5bdb6fde65141e8dca5227 (diff)
downloadfork-ledger-6d98bc58ae555d5d4487e7ee90c6ce8b2a49cbe6.tar.gz
fork-ledger-6d98bc58ae555d5d4487e7ee90c6ce8b2a49cbe6.tar.bz2
fork-ledger-6d98bc58ae555d5d4487e7ee90c6ce8b2a49cbe6.zip
Correct sorting of output in trial balance report.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/non-profit-audit-reports/summary-reports.plx9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/non-profit-audit-reports/summary-reports.plx b/contrib/non-profit-audit-reports/summary-reports.plx
index bbe83c88..e9e1a3b8 100755
--- a/contrib/non-profit-audit-reports/summary-reports.plx
+++ b/contrib/non-profit-audit-reports/summary-reports.plx
@@ -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/) {