fix: remove hardcoded, implicit rounding loss allowance

This commit is contained in:
ruthra kumar 2023-12-03 10:50:18 +05:30
parent f4d418ea6d
commit 64266c4d38

View File

@ -214,7 +214,7 @@ class ExchangeRateRevaluation(Document):
# round off balance based on currency precision
# and consider debit-credit difference allowance
currency_precision = get_currency_precision()
rounding_loss_allowance = float(rounding_loss_allowance) or 0.05
rounding_loss_allowance = float(rounding_loss_allowance)
for acc in account_details:
acc.balance_in_account_currency = flt(acc.balance_in_account_currency, currency_precision)
if abs(acc.balance_in_account_currency) <= rounding_loss_allowance: