fix: has_product_bundle util to only check for enabled bundles
This commit is contained in:
parent
874774fe6c
commit
3543f86c63
@ -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,
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user