Shortened the name of the "accounting.report.utils.income_expenses_account" module to "accounting.report.utils.ie_account".

This commit is contained in:
依瑪貓 2023-03-09 20:56:34 +08:00
parent e9d1a53e03
commit 20f55058ac
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ def init_app(app: Flask, bp: Blueprint) -> None:
""" """
from .converters import PeriodConverter, IncomeExpensesAccountConverter from .converters import PeriodConverter, IncomeExpensesAccountConverter
app.url_map.converters["period"] = PeriodConverter app.url_map.converters["period"] = PeriodConverter
app.url_map.converters["ioAccount"] = IncomeExpensesAccountConverter app.url_map.converters["ieAccount"] = IncomeExpensesAccountConverter
from .views import bp as report_bp from .views import bp as report_bp
bp.register_blueprint(report_bp, url_prefix="/reports") bp.register_blueprint(report_bp, url_prefix="/reports")

View File

@ -123,7 +123,7 @@ def __get_ledger(currency: Currency, account: Account, period: Period) \
return report.html() return report.html()
@bp.get("income-expenses/<currency:currency>/<ioAccount:account>", @bp.get("income-expenses/<currency:currency>/<ieAccount:account>",
endpoint="income-expenses-default") endpoint="income-expenses-default")
@has_permission(can_view) @has_permission(can_view)
def get_default_income_expenses(currency: Currency, def get_default_income_expenses(currency: Currency,
@ -139,7 +139,7 @@ def get_default_income_expenses(currency: Currency,
@bp.get( @bp.get(
"income-expenses/<currency:currency>/<ioAccount:account>/<period:period>", "income-expenses/<currency:currency>/<ieAccount:account>/<period:period>",
endpoint="income-expenses") endpoint="income-expenses")
@has_permission(can_view) @has_permission(can_view)
def get_income_expenses(currency: Currency, account: IncomeExpensesAccount, def get_income_expenses(currency: Currency, account: IncomeExpensesAccount,