From ad2365502fc2353b71dd4094397e0efd18d604a5 Mon Sep 17 00:00:00 2001 From: Rohan Date: Mon, 9 Sep 2019 13:49:02 +0530 Subject: [PATCH] fix: only select serial no that are present in the selected batch (#18726) --- erpnext/public/js/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 2dd65fec170..4134904d74d 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -70,8 +70,9 @@ $.extend(erpnext, { "get_query": function () { return { filters: { - item_code:grid_row.doc.item_code, - warehouse:cur_frm.doc.is_return ? null : grid_row.doc.warehouse + item_code: grid_row.doc.item_code, + warehouse: cur_frm.doc.is_return ? null : grid_row.doc.warehouse, + batch_no: grid_row.doc.batch_no || null } } }