chore: fix precision condition
This commit is contained in:
parent
1c05c004cd
commit
49601558c6
@ -193,7 +193,7 @@ class StockController(AccountsController):
|
|||||||
elif sle.warehouse not in warehouse_with_no_account:
|
elif sle.warehouse not in warehouse_with_no_account:
|
||||||
warehouse_with_no_account.append(sle.warehouse)
|
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")
|
self.get("is_internal_customer") or self.get("is_internal_supplier")
|
||||||
):
|
):
|
||||||
warehouse_asset_account = ""
|
warehouse_asset_account = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user