From 7cffd618abc07812ca5568a5b43d24201e7df121 Mon Sep 17 00:00:00 2001 From: Maxwell Morais Date: Mon, 22 Jan 2018 22:33:28 -0200 Subject: [PATCH] Serial No, wont relates to the warehouse The serial no, picker wont follow the target serial no --- erpnext/public/js/utils/serial_no_batch_selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/utils/serial_no_batch_selector.js b/erpnext/public/js/utils/serial_no_batch_selector.js index a974b9997e..a4d72657ea 100644 --- a/erpnext/public/js/utils/serial_no_batch_selector.js +++ b/erpnext/public/js/utils/serial_no_batch_selector.js @@ -314,7 +314,7 @@ erpnext.SerialNoBatchSelector = Class.extend({ fieldtype: 'Link', fieldname: 'serial_no_select', options: 'Serial No', label: __('Select'), get_query: function() { - return { filters: {item_code: me.item_code}}; + return { filters: {item_code: me.item_code, warehouse: me.warehouse_details.name}}; }, onchange: function(e) { if(this.in_local_change) return;