Fixed the URL of the 3351 brought-forward subject in the balance sheet to the income statement before the current period in the accounting application.

This commit is contained in:
2020-08-02 22:38:16 +08:00
parent b652d090d3
commit 2c3bd43345
3 changed files with 68 additions and 2 deletions

View File

@ -719,7 +719,7 @@ def balance_sheet(request, period):
code=Account.ACCUMULATED_BALANCE)
brought_forward.amount = balance
brought_forward.url = reverse(
"accounting:income-statement", args=(period,))
"accounting:income-statement", args=(period.period_before(),))
accounts.append(brought_forward)
balance = Record.objects \
.filter(