Skip to content

Commit

Permalink
fix: has_product_bundle util to only check for enabled bundles
Browse files Browse the repository at this point in the history
(cherry picked from commit 3543f86)
  • Loading branch information
GursheenK authored and mergify[bot] committed Nov 24, 2023
1 parent fb517e8 commit 5c12872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/selling_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def get_item_list(self):
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,
)

Expand Down

0 comments on commit 5c12872

Please sign in to comment.