From a45f8ca5fd7403e61f4c836dc28ea7742c24441e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 10:51:06 +0530 Subject: [PATCH] fix: batch picking in pick list based on Stock Settings (backport #42021) (#42134) fix: batch picking in pick list based on Stock Settings (#42021) (cherry picked from commit 97c9941143ebf29a06240516b103b5b171d642ab) Co-authored-by: rohitwaghchaure --- erpnext/stock/doctype/pick_list/pick_list.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/stock/doctype/pick_list/pick_list.py b/erpnext/stock/doctype/pick_list/pick_list.py index 69a1bdf17d8..6dd53f290c9 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.py +++ b/erpnext/stock/doctype/pick_list/pick_list.py @@ -963,6 +963,7 @@ def get_available_item_locations_for_batched_item( { "item_code": item_code, "warehouse": from_warehouses, + "based_on": frappe.db.get_single_value("Stock Settings", "pick_serial_and_batch_based_on"), } ) )