diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index f005a7f7a39..3f77a7114a3 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -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, )