From f7b87ed0e341da57f32873073e9f0f20af656c63 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 23 Apr 2026 18:19:28 +0530 Subject: [PATCH] fix(stock): show available qty in warehouse link field (backport #54474) (#54484) fix(stock): show available qty in warehouse link field (#54474) (cherry picked from commit ab19b16fe272f558ea77342c8d2abaad93326667) Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com> --- erpnext/public/js/utils/serial_no_batch_selector.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/erpnext/public/js/utils/serial_no_batch_selector.js b/erpnext/public/js/utils/serial_no_batch_selector.js index 6610078b9b4..0d262020007 100644 --- a/erpnext/public/js/utils/serial_no_batch_selector.js +++ b/erpnext/public/js/utils/serial_no_batch_selector.js @@ -106,10 +106,12 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate { }, get_query: () => { return { - filters: { - is_group: 0, - company: this.frm.doc.company, - }, + query: "erpnext.controllers.queries.warehouse_query", + filters: [ + ["Bin", "item_code", "=", this.item.item_code], + ["Warehouse", "is_group", "=", 0], + ["Warehouse", "company", "=", this.frm.doc.company], + ], }; }, });