From 661db8ba7120ef5df65de453dd618b45f64e7cb5 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Tue, 4 Oct 2016 14:46:34 +0530 Subject: [PATCH] [Fix] Source / Target warehouse does not toggle properly, if we change the purpose after saving a stock entry record --- erpnext/stock/doctype/stock_entry/stock_entry.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.js b/erpnext/stock/doctype/stock_entry/stock_entry.js index a9d978a9c7..0d3d7b8c24 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.js +++ b/erpnext/stock/doctype/stock_entry/stock_entry.js @@ -356,6 +356,7 @@ cur_frm.fields_dict['production_order'].get_query = function(doc) { } cur_frm.cscript.purpose = function(doc, cdt, cdn) { + cur_frm.fields_dict.items.grid.refresh(); cur_frm.cscript.toggle_related_fields(doc); }