[fix] Show supplier name field if it is different from supplier id

This commit is contained in:
Nabin Hait 2016-07-28 17:19:35 +05:30
parent 0d5e208f8c
commit 7bae70a993
2 changed files with 2 additions and 1 deletions

View File

@ -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")) {

View File

@ -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();
}
}
});