chore: fix precision condition

This commit is contained in:
Deepesh Garg 2022-10-12 14:57:16 +05:30
parent 1c05c004cd
commit 49601558c6

View File

@ -193,7 +193,7 @@ class StockController(AccountsController):
elif sle.warehouse not in warehouse_with_no_account:
warehouse_with_no_account.append(sle.warehouse)
if abs(sle_rounding_diff) < (1.0 / (10**precision)) and (
if abs(sle_rounding_diff) > (1.0 / (10**precision)) and (
self.get("is_internal_customer") or self.get("is_internal_supplier")
):
warehouse_asset_account = ""