mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-10 05:48:15 +00:00
perf: Ignore cancelled pick lists while fetching picked items (#35737)
This commit is contained in:
@@ -384,6 +384,7 @@ class PickList(Document):
|
||||
(pi_item.item_code.isin([x.item_code for x in items]))
|
||||
& ((pi_item.picked_qty > 0) | (pi_item.stock_qty > 0))
|
||||
& (pi.status != "Completed")
|
||||
& (pi.status != "Cancelled")
|
||||
& (pi_item.docstatus != 2)
|
||||
)
|
||||
.groupby(
|
||||
|
||||
Reference in New Issue
Block a user