Update item_prices.py

This commit is contained in:
ShashaQin 2016-03-10 14:55:06 +08:00
parent c6b5f7dcae
commit e8d635827a

View File

@ -47,7 +47,7 @@ def get_item_details():
for i in frappe.db.sql("select it.item_group as item_group, it.name as name, item_name, it.description as description, \ for i in frappe.db.sql("select it.item_group as item_group, it.name as name, item_name, it.description as description, \
stock_uom from tabItem it, `tabItem Group` itg \ stock_uom from tabItem it, `tabItem Group` itg \
where it.item_group = itg.name \ where it.item_group = itg.name and it.disabled = 0\
order by it.item_group, item_code", as_dict=1): order by it.item_group, item_code", as_dict=1):
item_map.setdefault(i.name, i) item_map.setdefault(i.name, i)