From ab19b16fe272f558ea77342c8d2abaad93326667 Mon Sep 17 00:00:00 2001 From: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com> Date: Thu, 23 Apr 2026 17:08:54 +0530 Subject: [PATCH] fix(stock): show available qty in warehouse link field (#54474) --- 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 4a3f90ad9b4..53caae31931 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], + ], }; }, });