fix: has_product_bundle util to only check for enabled bundles

(cherry picked from commit 3543f86c63)
This commit is contained in:
Gursheen Anand
2023-11-22 16:04:05 +05:30
committed by Mergify
parent 8a3a0688ba
commit fd19ac55e3

View File

@@ -346,7 +346,7 @@ class SellingController(StockController):
def has_product_bundle(self, item_code):
return frappe.db.sql(
"""select name from `tabProduct Bundle`
where new_item_code=%s and docstatus != 2""",
where new_item_code=%s and disabled=0""",
item_code,
)