Stock Entry agianst Manufaturing: fetch only stock items from bom
This commit is contained in:
parent
ba4aec3366
commit
b0e9c06f93
@ -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"""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user