Fix balance on the balance sheet
issue3132 review775002 (transplanted from f997ebd09baa0e9a5d4055f8921384a9a4fb5b2f)
This commit is contained in:
+1
-2
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user