mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
[perpetual accounting] fixes in testcases
This commit is contained in:
@@ -374,8 +374,7 @@ def get_stock_and_account_difference(warehouse_list=None):
|
||||
account_balance = get_balance_on(account)
|
||||
stock_value = sum([sum(bin_map.get(warehouse, {}).values())
|
||||
for warehouse in warehouse_list])
|
||||
|
||||
if flt(stock_value) - flt(account_balance):
|
||||
if abs(flt(stock_value) - flt(account_balance)) > 0.005:
|
||||
difference.setdefault(account, flt(stock_value) - flt(account_balance))
|
||||
|
||||
|
||||
return difference
|
||||
|
||||
Reference in New Issue
Block a user