From c2d2857540f8472ca141b9dd7098d1fc5eb0de79 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 8 Oct 2014 12:19:55 +0530 Subject: [PATCH] [fixes] tests and moved reorder_item to separate module --- erpnext/accounts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index cf57a61fe54..24781a3ac55 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -251,7 +251,7 @@ def fix_total_debit_credit(): (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 @@ def get_stock_and_account_difference(account_list=None, posting_date=None): 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))