From e8d635827ac49b1493b0aaa02446e0ec097b9ad1 Mon Sep 17 00:00:00 2001 From: ShashaQin Date: Thu, 10 Mar 2016 14:55:06 +0800 Subject: [PATCH] Update item_prices.py --- erpnext/stock/report/item_prices/item_prices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/report/item_prices/item_prices.py b/erpnext/stock/report/item_prices/item_prices.py index e722472461..680a5c2ece 100644 --- a/erpnext/stock/report/item_prices/item_prices.py +++ b/erpnext/stock/report/item_prices/item_prices.py @@ -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, \ 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): item_map.setdefault(i.name, i)