Added the base report class to ensure that the reports can both be shown on the page and downloaded as CSV.
This commit is contained in:
@ -27,6 +27,7 @@ from accounting.locale import gettext
|
||||
from accounting.models import Currency, BaseAccount, Account, Transaction, \
|
||||
JournalEntry
|
||||
from accounting.report.period import Period
|
||||
from .utils.base_report import BaseReport
|
||||
from .utils.csv_export import BaseCSVRow, csv_download
|
||||
from .utils.option_link import OptionLink
|
||||
from .utils.page_params import PageParams
|
||||
@ -371,7 +372,7 @@ class BalanceSheetPageParams(PageParams):
|
||||
.order_by(Currency.code).all()]
|
||||
|
||||
|
||||
class BalanceSheet:
|
||||
class BalanceSheet(BaseReport):
|
||||
"""The balance sheet."""
|
||||
|
||||
def __init__(self, currency: Currency, period: Period):
|
||||
|
Reference in New Issue
Block a user