refactor: drop redundant disabled filter on child query

`parent_items` already comes from the disabled-filtered parent query,
and on v16 an item has at most one bundle, so the child query cannot
reach a disabled bundle.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mihir Kandoi
2026-06-10 21:38:27 +05:30
parent 0c1a5082bd
commit dbc62276d6

View File

@@ -182,7 +182,7 @@ def get_items(filters):
pbi.uom,
pbi.qty,
)
.where(pb.new_item_code.isin(parent_items) & (IfNull(pb.disabled, 0) == 0))
.where(pb.new_item_code.isin(parent_items))
).run(as_dict=1)
child_items = set()