mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-16 05:15:10 +00:00
fix: pick list not picked qty less than 1
(cherry picked from commit 1a9ae33110)
This commit is contained in:
committed by
Mergify
parent
1c90797879
commit
5310ec38ca
@@ -778,7 +778,7 @@ def get_available_item_locations(
|
|||||||
|
|
||||||
if picked_item_details:
|
if picked_item_details:
|
||||||
for location in list(locations):
|
for location in list(locations):
|
||||||
if location["qty"] < 1:
|
if location["qty"] < 0:
|
||||||
locations.remove(location)
|
locations.remove(location)
|
||||||
|
|
||||||
total_qty_available = sum(location.get("qty") for location in locations)
|
total_qty_available = sum(location.get("qty") for location in locations)
|
||||||
|
|||||||
Reference in New Issue
Block a user