Skip to content

Commit

Permalink
fix: remove hardcoded, implicit rounding loss allowance
Browse files Browse the repository at this point in the history
(cherry picked from commit 64266c4)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Dec 3, 2023
1 parent 602f6ca commit 4baf796
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get_account_balance_from_gle(
# 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:
Expand Down

0 comments on commit 4baf796

Please sign in to comment.