Merge pull request #5909 from nabinhait/fix_113

[fix] Show supplier name field if it is different from supplier id
This commit is contained in:
Nabin Hait 2016-07-28 17:52:02 +05:30 committed by GitHub
commit 6b8024a834
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();
}
}
});