fix:Contact person query fix in quotation

This commit is contained in:
deepeshgarg007
2019-05-07 12:43:20 +05:30
parent 375a6f67ae
commit 25e408fd2a
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ erpnext.selling.QuotationController = erpnext.selling.SellingController.extend({
refresh: function(doc, dt, dn) {
this._super(doc, dt, dn);
doctype = doc.quotation_to == 'Customer' ? 'Customer':'Lead';
frappe.dynamic_link = {doc: this.frm.doc, fieldname: doctype.toLowerCase(), doctype: doctype}
frappe.dynamic_link = {doc: this.frm.doc, fieldname: 'party_name', doctype: doctype}
var me = this;

View File

@@ -542,7 +542,7 @@
"bold": 0,
"collapsible": 0,
"columns": 0,
"depends_on": "eval:doc.quotaion_to=='Customer' && doc.party_name",
"depends_on": "",
"fetch_if_empty": 0,
"fieldname": "contact_person",
"fieldtype": "Link",
@@ -3224,7 +3224,7 @@
"istable": 0,
"max_attachments": 1,
"menu_index": 0,
"modified": "2019-05-02 15:16:37.394455",
"modified": "2019-05-07 12:42:51.125194",
"modified_by": "Administrator",
"module": "Selling",
"name": "Quotation",