fix: has_product_bundle util to only check for enabled bundles
diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py
index d34fbeb..c3211b1 100644
--- a/erpnext/controllers/selling_controller.py
+++ b/erpnext/controllers/selling_controller.py
@@ -352,7 +352,7 @@
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,
)