[fix] [minor] syntax error in stock entry

This commit is contained in:
Nabin Hait 2013-07-30 12:38:19 +05:30
parent 4525a0b900
commit 9764e32d0a

View File

@ -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)