[enhance] rename warehouse account type to stock

This commit is contained in:
Saurabh
2016-06-24 13:11:29 +05:30
parent 2ee4d79609
commit 7fecb50360
12 changed files with 39 additions and 25 deletions

View File

@@ -318,7 +318,7 @@ def get_stock_and_account_difference(account_list=None, posting_date=None):
difference = {}
account_warehouse = dict(frappe.db.sql("""select name, warehouse from tabAccount
where account_type = 'Warehouse' and (warehouse is not null and warehouse != '')
where account_type = 'Stock' and (warehouse is not null and warehouse != '')
and name in (%s)""" % ', '.join(['%s']*len(account_list)), account_list))
for account, warehouse in account_warehouse.items():