From 9764e32d0a5ff483871ccde5cc07f89c96a90ec5 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 30 Jul 2013 12:38:19 +0530 Subject: [PATCH] [fix] [minor] syntax error in stock entry --- stock/doctype/stock_entry/stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock/doctype/stock_entry/stock_entry.py b/stock/doctype/stock_entry/stock_entry.py index 58f17c7401a..afa3eb4f011 100644 --- a/stock/doctype/stock_entry/stock_entry.py +++ b/stock/doctype/stock_entry/stock_entry.py @@ -554,7 +554,7 @@ class DocType(StockController): `tabBOM Item`, `tabItem` where `tabBOM Item`.parent = %s and - `tabBOM Item`.item_code = tabItem.name + `tabBOM Item`.item_code = tabItem.name and `tabBOM Item`.docstatus < 2 group by item_code""", (qty, self.doc.bom_no), as_dict=1)