[fixes] tests and moved reorder_item to separate module
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py
index cf57a61..24781a3 100644
--- a/erpnext/accounts/utils.py
+++ b/erpnext/accounts/utils.py
@@ -251,7 +251,7 @@
(d.diff, d.voucher_type, d.voucher_no))
def get_stock_and_account_difference(account_list=None, posting_date=None):
- from erpnext.stock.utils import get_stock_balance_on
+ from erpnext.stock.utils import get_stock_value_on
if not posting_date: posting_date = nowdate()
@@ -263,7 +263,7 @@
for account, warehouse in account_warehouse.items():
account_balance = get_balance_on(account, posting_date)
- stock_value = get_stock_balance_on(warehouse, posting_date)
+ stock_value = get_stock_value_on(warehouse, posting_date)
if abs(flt(stock_value) - flt(account_balance)) > 0.005:
difference.setdefault(account, flt(stock_value) - flt(account_balance))