From c4dfcbec96b4df318fd140e6b50c3ecd8c195854 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Thu, 9 May 2024 11:58:33 +0530 Subject: [PATCH] refactor: make use of doc.quotation_to (cherry picked from commit 754c7f6d1ca0e20d5673dea79b15097e5c66ea3b) # Conflicts: # erpnext/selling/doctype/quotation/quotation.js --- erpnext/selling/doctype/quotation/quotation.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/erpnext/selling/doctype/quotation/quotation.js b/erpnext/selling/doctype/quotation/quotation.js index 37c80da95ca..1dc6e7f27da 100644 --- a/erpnext/selling/doctype/quotation/quotation.js +++ b/erpnext/selling/doctype/quotation/quotation.js @@ -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;