Skip to content

Commit

Permalink
perf: Ignore cancelled pick lists while fetching picked items (#35737)
Browse files Browse the repository at this point in the history
(cherry picked from commit 81f916b)
  • Loading branch information
ankush authored and mergify[bot] committed Jun 16, 2023
1 parent 0e57f4d commit d5b3c44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/stock/doctype/pick_list/pick_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def get_picked_items_details(self, items):
(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(
Expand Down

0 comments on commit d5b3c44

Please sign in to comment.