Updated the template variables in the balance sheet in the accounting application.

This commit is contained in:
依瑪貓
2020-07-21 11:58:50 +08:00
parent 6f47c08c80
commit 3c294ffcb8
2 changed files with 31 additions and 31 deletions

View File

@ -784,9 +784,9 @@ def balance_sheet(request, period_spec):
section.balance = sum([x.balance for x in section.groups])
by_code = {x.code: x for x in sections}
return render(request, "accounting/balance-sheet.html", {
"section_1": by_code["1"],
"section_2": by_code["2"],
"section_3": by_code["3"],
"assets": by_code["1"],
"liabilities": by_code["2"],
"owners_equity": by_code["3"],
"reports": ReportUrl(period=period),
"period": period,
})