From 734362396f8ea7eec6fee1273b6e71665ce31cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 6 Mar 2023 00:26:07 +0800 Subject: [PATCH] Adding the missing currency when constructing the report chooser in the trial balance. --- src/accounting/report/reports.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/accounting/report/reports.py b/src/accounting/report/reports.py index 6b51ba9..305ee14 100644 --- a/src/accounting/report/reports.py +++ b/src/accounting/report/reports.py @@ -732,7 +732,9 @@ class TrialBalance(JournalEntryReport[TrialBalanceRow]): @property def report_chooser(self) -> ReportChooser: - return ReportChooser(ReportType.TRIAL_BALANCE, period=self.period) + return ReportChooser(ReportType.TRIAL_BALANCE, + currency=self.currency, + period=self.period) def as_html_page(self) -> str: pagination: Pagination = Pagination[TrialBalanceRow](self.rows)