audit_report: Bugfix handling audit year specified as date.
This commit is contained in:
parent
1cc4e732f4
commit
56bfbe21c4
2 changed files with 4 additions and 3 deletions
|
@ -132,8 +132,9 @@ def main(arglist: Optional[Sequence[str]]=None,
|
|||
|
||||
fy = config.fiscal_year_begin()
|
||||
today = datetime.date.today()
|
||||
if args.audit_year is None:
|
||||
args.audit_year = fy.for_date(today) - 1
|
||||
if not isinstance(args.audit_year, int):
|
||||
year_offset = 1 if args.audit_year is None else 0
|
||||
args.audit_year = fy.for_date(args.audit_year) - year_offset
|
||||
audit_begin = fy.first_date(args.audit_year)
|
||||
audit_end = fy.next_fy_date(args.audit_year)
|
||||
if args.end_date is None:
|
||||
|
|
2
setup.py
2
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.12.2',
|
||||
version='1.12.3',
|
||||
author='Software Freedom Conservancy',
|
||||
author_email='info@sfconservancy.org',
|
||||
license='GNU AGPLv3+',
|
||||
|
|
Loading…
Reference in a new issue