perf: Ignore cancelled pick lists while fetching picked items (#35737)
This commit is contained in:
parent
07d748c290
commit
81f916b7d3
@ -384,6 +384,7 @@ class PickList(Document):
|
|||||||
(pi_item.item_code.isin([x.item_code for x in items]))
|
(pi_item.item_code.isin([x.item_code for x in items]))
|
||||||
& ((pi_item.picked_qty > 0) | (pi_item.stock_qty > 0))
|
& ((pi_item.picked_qty > 0) | (pi_item.stock_qty > 0))
|
||||||
& (pi.status != "Completed")
|
& (pi.status != "Completed")
|
||||||
|
& (pi.status != "Cancelled")
|
||||||
& (pi_item.docstatus != 2)
|
& (pi_item.docstatus != 2)
|
||||||
)
|
)
|
||||||
.groupby(
|
.groupby(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user