diff --git a/conservancy_beancount/reports/accrual.py b/conservancy_beancount/reports/accrual.py index eb3b137f08a97e7af00ed18c069dc83ef5a80efe..074b83158841c8f5c39d850bda976e0d3306df3a 100644 --- a/conservancy_beancount/reports/accrual.py +++ b/conservancy_beancount/reports/accrual.py @@ -756,13 +756,14 @@ def main(arglist: Optional[Sequence[str]]=None, if rt_wrapper is None: logger.error("unable to generate aging report: RT client is required") else: - now = datetime.datetime.now() if args.output_file is None: + now = datetime.datetime.now() out_dir_path = config.repository_path() or Path() args.output_file = out_dir_path / now.strftime('AgingReport_%Y-%m-%d_%H:%M.ods') logger.info("Writing report to %s", args.output_file) out_bin = cliutil.bytes_output(args.output_file, stdout) report = AgingReport(rt_wrapper, out_bin) + report.ods.set_common_properties(config.books_repo()) elif args.report_type is ReportType.OUTGOING: rt_wrapper = config.rt_wrapper() if rt_wrapper is None: