=== modified file 'account/report/account_balance.py' --- account/report/account_balance.py 2009-10-09 11:49:00 +0000 +++ account/report/account_balance.py 2010-05-18 15:07:10 +0000 @@ -26,6 +26,7 @@ import time import datetime from report import report_sxw +from tools import config class account_balance(report_sxw.rml_parse): _name = 'report.account.account.balance' @@ -148,10 +149,14 @@ res['level'] = r['level'] + 1 break if form['display_account'] == 'bal_mouvement': - if res['credit'] > 0 or res['debit'] > 0 or res['balance'] > 0 : + # Include accounts with movements + if abs(res['balance']) >= 0.5 * 10**-int(config['price_accuracy']) \ + or abs(res['credit']) >= 0.5 * 10**-int(config['price_accuracy']) \ + or abs(res['debit']) >= 0.5 * 10**-int(config['price_accuracy']): result_acc.append(res) elif form['display_account'] == 'bal_solde': - if res['balance'] != 0: + # Include accounts with balance + if abs(res['balance']) >= 0.5 * 10**-int(config['price_accuracy']): result_acc.append(res) else: result_acc.append(res)