mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
fix: add is_active filter
This commit is contained in:
@@ -845,7 +845,7 @@ def raise_work_orders(material_request, company):
|
||||
|
||||
for d in mr.items:
|
||||
if (d.stock_qty - d.ordered_qty) > 0:
|
||||
if frappe.db.exists("BOM", {"item": d.item_code, "is_default": 1}) or (
|
||||
if frappe.db.exists("BOM", {"item": d.item_code, "is_default": 1, "is_active": 1}) or (
|
||||
(variant_of := frappe.get_value("Item", d.item_code, "variant_of"))
|
||||
and frappe.db.exists("BOM", {"item": variant_of, "is_default": 1, "is_active": 1})
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user