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

@ -293,7 +293,6 @@ First written: 2020/7/20
</li>
{% for item in group.details %}
<li class="list-group-item d-flex justify-content-between align-items-center account">
{# TODO: Link to the income statement for account #3351 #}
<a class="list-group-item-action" href="{{ item.url }}">
{{ item.title|title }}
<div class="float-right">

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(