fix: pick list not picked qty less than 1

(cherry picked from commit 1a9ae33110)
This commit is contained in:
Rohit Waghchaure
2024-03-20 13:18:23 +05:30
committed by Mergify
parent 1c90797879
commit 5310ec38ca

View File

@@ -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)