fix: filter bundle items based on disabled check

(cherry picked from commit 874774fe6c81c854fb3ade03e93f003c0fc8dd8a)
This commit is contained in:
Gursheen Anand 2023-11-22 15:24:56 +05:30 committed by Mergify
parent fcd53be188
commit fb517e823f

View File

@ -111,7 +111,7 @@ def get_product_bundle_items(item_code):
product_bundle_item.uom,
product_bundle_item.description,
)
.where(product_bundle.new_item_code == item_code)
.where((product_bundle.new_item_code == item_code) & (product_bundle.disabled == 0))
.orderby(product_bundle_item.idx)
)
return query.run(as_dict=True)