mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
[perpetual accounting] [minor] fixes for test cases
This commit is contained in:
@@ -375,7 +375,7 @@ def get_stock_and_account_difference(warehouse_list=None):
|
||||
stock_value = sum([sum(bin_map.get(warehouse, {}).values())
|
||||
for warehouse in warehouse_list])
|
||||
|
||||
if stock_value - account_balance:
|
||||
difference.setdefault(account, (stock_value - account_balance))
|
||||
if flt(stock_value) - flt(account_balance):
|
||||
difference.setdefault(account, flt(stock_value) - flt(account_balance))
|
||||
|
||||
return difference
|
||||
|
||||
Reference in New Issue
Block a user