mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-17 16:38:41 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user