diff --git a/erpnext/buying/doctype/purchase_common/purchase_common.js b/erpnext/buying/doctype/purchase_common/purchase_common.js index 1806d93d4bf..2e7651699b0 100644 --- a/erpnext/buying/doctype/purchase_common/purchase_common.js +++ b/erpnext/buying/doctype/purchase_common/purchase_common.js @@ -87,7 +87,7 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({ refresh: function(doc) { this.frm.toggle_display("supplier_name", - (this.supplier_name && this.frm.doc.supplier_name!==this.frm.doc.supplier)); + (this.frm.doc.supplier_name && this.frm.doc.supplier_name!==this.frm.doc.supplier)); if(this.frm.docstatus==0 && (this.frm.doctype==="Purchase Order" || this.frm.doctype==="Material Request")) { diff --git a/erpnext/public/js/utils/party.js b/erpnext/public/js/utils/party.js index f5496ed1d11..a3f3550714c 100644 --- a/erpnext/public/js/utils/party.js +++ b/erpnext/public/js/utils/party.js @@ -45,6 +45,7 @@ erpnext.utils.get_party_details = function(frm, method, args, callback) { frm.set_value(r.message); frm.updating_party_details = false; if(callback) callback(); + frm.refresh(); } } });