Skip to content

Commit

Permalink
Merge pull request frappe#40559 from rohitwaghchaure/fixed-pick-list-…
Browse files Browse the repository at this point in the history
…issue-11688

fix: pick list not picked materials having required qty less than 1
  • Loading branch information
rohitwaghchaure authored Mar 20, 2024
2 parents 1d91e17 + 1a9ae33 commit dfffadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/pick_list/pick_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def get_available_item_locations(

if picked_item_details:
for location in list(locations):
if location["qty"] < 1:
if location["qty"] < 0:
locations.remove(location)

total_qty_available = sum(location.get("qty") for location in locations)
Expand Down

0 comments on commit dfffadd

Please sign in to comment.