Fixed the sign of the liabilities and owner's equity in the balance sheet in the accounting application.
This commit is contained in:
parent
c7ab277698
commit
968516c472
@ -778,7 +778,7 @@ def balance_sheet(request, period):
|
||||
default=1) * F("amount")))["balance"]
|
||||
if balance is not None and balance != 0:
|
||||
brought_forward = Account.objects.get(code="3351")
|
||||
brought_forward.balance = -balance
|
||||
brought_forward.balance = balance
|
||||
brought_forward.url = reverse(
|
||||
"accounting:income-statement", args=(period,))
|
||||
accounts.append(brought_forward)
|
||||
@ -796,10 +796,12 @@ def balance_sheet(request, period):
|
||||
default=1) * F("amount")))["balance"]
|
||||
if balance is not None and balance != 0:
|
||||
net_income = Account.objects.get(code="3353")
|
||||
net_income.balance = -balance
|
||||
net_income.balance = balance
|
||||
net_income.url = reverse(
|
||||
"accounting:income-statement", args=(period,))
|
||||
accounts.append(net_income)
|
||||
for account in [x for x in accounts if x.code[0] in "23"]:
|
||||
account.balance = -account.balance
|
||||
groups = list(Account.objects.filter(
|
||||
code__in=[x.code[:2] for x in accounts]))
|
||||
sections = list(Account.objects.filter(
|
||||
|
Loading…
Reference in New Issue
Block a user