mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
[fix] In get_bom_items_as_dict don't filter by is_pro_applicable for multi-level bom
This commit is contained in:
@@ -391,8 +391,7 @@ def get_bom_items_as_dict(bom, company, qty=1, fetch_exploded=1):
|
|||||||
|
|
||||||
if fetch_exploded:
|
if fetch_exploded:
|
||||||
query = query.format(table="BOM Explosion Item",
|
query = query.format(table="BOM Explosion Item",
|
||||||
conditions="""and item.is_pro_applicable = 0
|
conditions="""and item.is_sub_contracted_item = 0""")
|
||||||
and item.is_sub_contracted_item = 0 """)
|
|
||||||
items = frappe.db.sql(query, { "qty": qty, "bom": bom }, as_dict=True)
|
items = frappe.db.sql(query, { "qty": qty, "bom": bom }, as_dict=True)
|
||||||
else:
|
else:
|
||||||
query = query.format(table="BOM Item", conditions="")
|
query = query.format(table="BOM Item", conditions="")
|
||||||
|
|||||||
Reference in New Issue
Block a user