fix: pick list not picked qty less than 1

This commit is contained in:
Rohit Waghchaure
2024-03-20 13:18:23 +05:30
parent 6d47b8a24e
commit 1a9ae33110

View File

@@ -774,7 +774,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)