refactor: make use of doc.quotation_to

(cherry picked from commit 754c7f6d1c)

# Conflicts:
#	erpnext/selling/doctype/quotation/quotation.js
This commit is contained in:
ruthra kumar
2024-05-09 11:58:33 +05:30
committed by Mergify
parent c9e7f450c5
commit c4dfcbec96

View File

@@ -70,14 +70,6 @@ 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,
<<<<<<< HEAD
@@ -85,8 +77,12 @@ erpnext.selling.QuotationController = class QuotationController extends erpnext.
doctype: doc.quotation_to == 'Customer' ? 'Customer' : 'Lead',
=======
fieldname: "party_name",
<<<<<<< HEAD
doctype: doctype,
>>>>>>> fe5b88522e (fix: address filter and quotation to for prospect)
=======
doctype: doc.quotation_to,
>>>>>>> 754c7f6d1c (refactor: make use of doc.quotation_to)
};
var me = this;