mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 02:33:38 +00:00
[Fix] Source / Target warehouse does not toggle properly, if we change the purpose after saving a stock entry record
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user