From 0e8745bf512d2fc8c2c249e2a52fb22d898eca27 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Wed, 15 Jul 2020 10:14:33 -0400 Subject: [PATCH] ledger: Include all fund accounts in default project ledger reports. This brings the reporting into sync with the fund report. --- conservancy_beancount/reports/ledger.py | 9 ++++++++- setup.py | 2 +- tests/test_reports_ledger.py | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/conservancy_beancount/reports/ledger.py b/conservancy_beancount/reports/ledger.py index a238e4d..3dfe589 100644 --- a/conservancy_beancount/reports/ledger.py +++ b/conservancy_beancount/reports/ledger.py @@ -438,7 +438,14 @@ metadata to match. A single ticket number is a shortcut for args = parser.parse_args(arglist) if args.sheet_names is None: if any(term.meta_key == 'project' for term in args.search_terms): - args.sheet_names = ['Income', 'Expenses', 'Assets:Receivable', 'Liabilities:Payable'] + args.sheet_names = [ + 'Income', + 'Expenses', + 'Assets:Receivable', + 'Assets:Prepaid', + 'Liabilities:UnearnedIncome', + 'Liabilities:Payable', + ] else: args.sheet_names = list(LedgerODS.ACCOUNT_COLUMNS) return args diff --git a/setup.py b/setup.py index 47a1a41..68acabe 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup setup( name='conservancy_beancount', description="Plugin, library, and reports for reading Conservancy's books", - version='1.5.8', + version='1.5.9', author='Software Freedom Conservancy', author_email='info@sfconservancy.org', license='GNU AGPLv3+', diff --git a/tests/test_reports_ledger.py b/tests/test_reports_ledger.py index 5b2546f..1613424 100644 --- a/tests/test_reports_ledger.py +++ b/tests/test_reports_ledger.py @@ -52,6 +52,8 @@ PROJECT_REPORT_SHEETS = [ 'Income', 'Expenses', 'Assets:Receivable', + 'Assets:Prepaid', + 'Liabilities:UnearnedIncome', 'Liabilities:Payable', ] OVERSIZE_RE = re.compile(