Adding the missing currency when constructing the report chooser in the trial balance.

This commit is contained in:
依瑪貓 2023-03-06 00:26:07 +08:00
parent 88147bea66
commit 734362396f

View File

@ -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)