From b0e9c06f934caa55dbc125cdc7417e44d7c880ca Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Sat, 2 May 2015 15:07:52 +0530 Subject: [PATCH] Stock Entry agianst Manufaturing: fetch only stock items from bom --- erpnext/manufacturing/doctype/bom/bom.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/manufacturing/doctype/bom/bom.py b/erpnext/manufacturing/doctype/bom/bom.py index 14932d28fef..4c87dc7cd22 100644 --- a/erpnext/manufacturing/doctype/bom/bom.py +++ b/erpnext/manufacturing/doctype/bom/bom.py @@ -388,6 +388,7 @@ def get_bom_items_as_dict(bom, qty=1, fetch_exploded=1): and bom_item.docstatus < 2 and bom_item.parent = %(bom)s and item.name = bom_item.item_code + and ifnull(item.is_stock_item, 'No') = 'Yes' {conditions} group by item_code, stock_uom"""