summaryrefslogtreecommitdiff
path: root/contrib/non-profit-audit-reports
diff options
context:
space:
mode:
authorBradley M. Kuhn <bkuhn@ebb.org>2012-11-23 08:44:53 -0500
committerBradley M. Kuhn <bkuhn@ebb.org>2012-11-26 13:54:45 -0500
commit46b13e8e550fb05a3e863e913cf6cd359ef42272 (patch)
tree4f194e8cad9948f76c8d37fd5d6f2bae9c00e882 /contrib/non-profit-audit-reports
parentcba448b28bbc26a03a5b590818ff8668ac162681 (diff)
downloadfork-ledger-46b13e8e550fb05a3e863e913cf6cd359ef42272.tar.gz
fork-ledger-46b13e8e550fb05a3e863e913cf6cd359ef42272.tar.bz2
fork-ledger-46b13e8e550fb05a3e863e913cf6cd359ef42272.zip
Include credit card balances in the Liabilities list.
Diffstat (limited to 'contrib/non-profit-audit-reports')
-rwxr-xr-xcontrib/non-profit-audit-reports/summary-reports.plx4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/non-profit-audit-reports/summary-reports.plx b/contrib/non-profit-audit-reports/summary-reports.plx
index 0f0e09ee..04923de8 100755
--- a/contrib/non-profit-audit-reports/summary-reports.plx
+++ b/contrib/non-profit-audit-reports/summary-reports.plx
@@ -62,6 +62,7 @@ my %reportFields =
'Loans Receivable' => {args => [ '-e', $endDate, 'bal', '/^Accrued:Loans Receivable/' ]},
'Accounts Payable' => {args => [ '-e', $endDate, 'bal', '/^Accrued.*Accounts Payable/' ]},
'Accrued Expenses' => {args => [ '-e', $endDate, 'bal', '/^Accrued.*Expenses/' ]},
+ 'Liabilities, Credit Cards' => {args => [ '-e', $endDate, 'bal', '/^Liabilities:Credit Card/' ]},
'Unearned Income, Conference Registration' => {args => [ '-e', $endDate, 'bal',
'/^Unearned Income.*Conf.*Reg/' ]},
'Unearned Income, Other' => {args => [ '-e', $endDate, 'bal', '/^Unearned Income/', 'and', 'not',
@@ -125,7 +126,7 @@ foreach my $item ('Cash', 'Accounts Receivable', 'Loans Receivable') {
print ASSETS "\n", sprintf($formatStrTotal, "TOTAL ASSETS", Commify($tot)), "\n\nLIABILITIES\n\n";
my $totLiabilities = $ZERO;
-foreach my $item ('Accounts Payable', 'Accrued Expenses',
+foreach my $item ('Accounts Payable', 'Liabilities, Credit Cards', 'Accrued Expenses',
'Unearned Income, Conference Registration', 'Unearned Income, Other') {
next if $reportFields{$item}{total} == $ZERO;
print ASSETS sprintf($formatStr, "$item:", Commify($reportFields{$item}{total}));
@@ -155,6 +156,7 @@ die "Cash+accounts receivable total does not equal net assets and liabilities to
$reportFields{'Accrued Expenses'}{total} +
$reportFields{'Unearned Income, Conference Registration'}{total} +
$reportFields{'Unearned Income, Other'}{total} +
+ $reportFields{'Liabilities, Credit Cards'}{total} +
$reportFields{'Total Net Assets'}{total}));
die "Total net assets doesn't equal sum of restricted and unrestricted ones!"