Added the UnappliedAccountConverter path converter to only allow the accounts that need offsets.

This commit is contained in:
2023-04-08 07:15:58 +08:00
parent c984d2d596
commit e9824808ec
3 changed files with 30 additions and 2 deletions

View File

@ -286,7 +286,7 @@ def __get_balance_sheet(currency: Currency, period: Period) \
return report.html()
@bp.get("unapplied/<account:account>", endpoint="unapplied")
@bp.get("unapplied/<unappliedAccount:account>", endpoint="unapplied")
@has_permission(can_view)
def get_unapplied(account: Account) -> str | Response:
"""Returns the unapplied original line items.