Skip to content

Commit

Permalink
perf: Ignore cancelled pick lists while fetching picked items (backport
Browse files Browse the repository at this point in the history
#35737) (#35740)

perf: Ignore cancelled pick lists while fetching picked items (#35737)

(cherry picked from commit 81f916b)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush authored Jun 16, 2023
1 parent 0e57f4d commit 01ac54d
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 01ac54d

Please sign in to comment.