Fixed the styles of the negative numbers in the reports with red and braced absolute values.

This commit is contained in:
2023-03-07 23:21:18 +08:00
parent 3c200d0dc6
commit 24315b8203
6 changed files with 59 additions and 20 deletions

View File

@ -24,9 +24,11 @@ from accounting.utils.permission import has_permission, can_view
from .period import Period
from .reports import Journal, Ledger, IncomeExpenses, TrialBalance, \
IncomeStatement, BalanceSheet
from .template_filters import format_amount
bp: Blueprint = Blueprint("report", __name__)
"""The view blueprint for the reports."""
bp.add_app_template_filter(format_amount, "accounting_report_format_amount")
@bp.get("journal", endpoint="journal-default")