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:
@ -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">
|
||||
|
@ -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(
|
||||
|
Reference in New Issue
Block a user