Skip to content

Commit

Permalink
refactor: make use of doc.quotation_to
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed May 9, 2024
1 parent 2896e36 commit 754c7f6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions erpnext/selling/doctype/quotation/quotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,10 @@ erpnext.selling.QuotationController = class QuotationController extends erpnext.
}
refresh(doc, dt, dn) {
super.refresh(doc, dt, dn);
let doctype = "";
if (doc.quotation_to == "Customer") {
doctype = "Customer";
} else if (doc.quotation_to == "Lead") {
doctype = "Lead";
} else if (doc.quotation_to == "Prospect") {
doctype = "Prospect";
}
frappe.dynamic_link = {
doc: this.frm.doc,
fieldname: "party_name",
doctype: doctype,
doctype: doc.quotation_to,
};

var me = this;
Expand Down

0 comments on commit 754c7f6

Please sign in to comment.