From 34694d99eba9570bbc7d247c13ed6fb8a61434a7 Mon Sep 17 00:00:00 2001 From: Giedrius Slavinskas Date: Fri, 12 Apr 2013 16:31:12 +0300 Subject: [PATCH] Fix balance on the balance sheet issue3132 review775002 --- account.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/account.py b/account.py index 436ef38c5a..ddf70b0ce3 100644 --- a/account.py +++ b/account.py @@ -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([