Fix balance on the balance sheet

issue3132
review775002
This commit is contained in:
Giedrius Slavinskas committed 2013-04-12 16:31:12 +03:00
1 parent 4db600d69a
commit 34694d99eb
1 file changed
+1 -2
+1 -2
View File
@@ -238,8 +238,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([