fix: has_product_bundle util to only check for enabled bundles

This commit is contained in:
Gursheen Anand 2023-11-22 16:04:05 +05:30
parent 874774fe6c
commit 3543f86c63

View File

@ -352,7 +352,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,
)