Skip to content

Commit

Permalink
fix: Random behaviour while picking items using picklist (backport #3…
Browse files Browse the repository at this point in the history
…3449) (#33451)

fix: Random behaviour while picking items using picklist (#33449)

(cherry picked from commit 8263bf9)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
mergify[bot] and deepeshgarg007 committed Dec 27, 2022
1 parent 29bb873 commit abfb3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/pick_list/pick_list.py
Expand Up @@ -441,7 +441,7 @@ def get_available_item_locations_for_batched_item(
sle.`batch_no`,
sle.`item_code`
HAVING `qty` > 0
ORDER BY IFNULL(batch.`expiry_date`, '2200-01-01'), batch.`creation`
ORDER BY IFNULL(batch.`expiry_date`, '2200-01-01'), batch.`creation`, sle.`batch_no`, sle.`warehouse`
""".format(
warehouse_condition=warehouse_condition
),
Expand Down

0 comments on commit abfb3bf

Please sign in to comment.