From 100a7828ba88301fafcee2e70af6b2de7ef07b69 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 (transplanted from f997ebd09baa0e9a5d4055f8921384a9a4fb5b2f) --- account.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/account.py b/account.py index 03c809146f..57f7f114b2 100644 --- a/account.py +++ b/account.py @@ -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([