From 5310ec38ca68d72909f4a0783d90c7a6a99600bb Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 20 Mar 2024 13:18:23 +0530 Subject: [PATCH] fix: pick list not picked qty less than 1 (cherry picked from commit 1a9ae33110371655e9ef88d6904c0c03f985ec90) --- erpnext/stock/doctype/pick_list/pick_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/pick_list/pick_list.py b/erpnext/stock/doctype/pick_list/pick_list.py index 627520c1dcd..4eab7e8a0cf 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.py +++ b/erpnext/stock/doctype/pick_list/pick_list.py @@ -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)