From 30e03cc4c87cedfa4aea2eb87f27c8d46bbe0974 Mon Sep 17 00:00:00 2001 From: mbauskar Date: Tue, 18 Jul 2017 11:23:21 +0530 Subject: [PATCH] [minor] fixes for TypeError: get_lead_details() takes at least 1 argument (2 given) --- erpnext/selling/doctype/quotation/quotation.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/selling/doctype/quotation/quotation.js b/erpnext/selling/doctype/quotation/quotation.js index 64af35d8cc..43fa20f8c1 100644 --- a/erpnext/selling/doctype/quotation/quotation.js +++ b/erpnext/selling/doctype/quotation/quotation.js @@ -105,6 +105,10 @@ erpnext.selling.QuotationController = erpnext.selling.SellingController.extend({ lead: function() { var me = this; + if(!this.frm.doc.lead) { + return; + } + frappe.call({ method: "erpnext.crm.doctype.lead.lead.get_lead_details", args: {