Fix balance on the balance sheet

issue3132
review775002
(transplanted from f997ebd09baa0e9a5d4055f8921384a9a4fb5b2f)
This commit is contained in:
Giedrius Slavinskas
2013-04-12 16:31:12 +03:00
parent b57fde6336
commit 100a7828ba
+1 -2
View File
@@ -240,8 +240,7 @@ class Type(ModelSQL, ModelView):
('type', 'in', [t.id for t in childs]),
])
for account in accounts:
type_sum[account.type.id] += account.company.currency.round(
account.debit - account.credit)
type_sum[account.type.id] += account.balance
for type_ in types:
childs = cls.search([