Merge pull request #25985 from resilient-tech/fix-quotation

fix: variable declaration
This commit is contained in:
Sagar Vora 2021-06-08 18:09:34 +05:30 committed by GitHub
commit 10ec2eed6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,8 +53,11 @@ erpnext.selling.QuotationController = class QuotationController extends erpnext.
} }
refresh(doc, dt, dn) { refresh(doc, dt, dn) {
super.refresh(doc, dt, dn); super.refresh(doc, dt, dn);
doctype = doc.quotation_to == 'Customer' ? 'Customer':'Lead'; frappe.dynamic_link = {
frappe.dynamic_link = {doc: this.frm.doc, fieldname: 'party_name', doctype: doctype} doc: this.frm.doc,
fieldname: 'party_name',
doctype: doc.quotation_to == 'Customer' ? 'Customer' : 'Lead',
};
var me = this; var me = this;