From 780952ea032a20150b587fe806651b7067695a75 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 31 May 2018 09:29:18 +0530 Subject: [PATCH] Show actual qty in warehouse link search (#14258) --- erpnext/public/js/utils/serial_no_batch_selector.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/erpnext/public/js/utils/serial_no_batch_selector.js b/erpnext/public/js/utils/serial_no_batch_selector.js index 78def269df..eabb81ed02 100644 --- a/erpnext/public/js/utils/serial_no_batch_selector.js +++ b/erpnext/public/js/utils/serial_no_batch_selector.js @@ -55,11 +55,13 @@ erpnext.SerialNoBatchSelector = Class.extend({ }, get_query: function() { return { - filters: { - is_group: 0, - company: me.frm.doc.company - } - }; + query: "erpnext.controllers.queries.warehouse_query", + filters: [ + ["Bin", "item_code", "=", me.item_code], + ["Warehouse", "is_group", "=", 0], + ["Warehouse", "company", "=", me.frm.doc.company] + ] + } } }, {fieldtype:'Column Break'},