diff --git a/erpnext/crm/doctype/lead/lead.js b/erpnext/crm/doctype/lead/lead.js
index 815bb41a76..bd1639bb12 100644
--- a/erpnext/crm/doctype/lead/lead.js
+++ b/erpnext/crm/doctype/lead/lead.js
@@ -42,6 +42,7 @@ erpnext.LeadController = class LeadController extends frappe.ui.form.Controller
if (!this.frm.is_new()) {
frappe.contacts.render_address_and_contact(this.frm);
+ cur_frm.trigger('render_basic_info_html');
} else {
frappe.contacts.clear_address_and_contact(this.frm);
}
@@ -81,6 +82,45 @@ erpnext.LeadController = class LeadController extends frappe.ui.form.Controller
this.frm.set_value("ends_on", d.format(frappe.defaultDatetimeFormat));
}
}
+
+ render_basic_info_html() {
+ let html='';
+ if (cur_frm.doc.lead_owner){
+ html += `
+ Lead Owner
+
+
+ ${cur_frm.doc.lead_owner}
+
` ;
+ }
+
+ if (cur_frm.doc.email_id){
+ html += `
+ Email
+
+
+ ${cur_frm.doc.email_id}
+
` ;
+ }
+
+ if (cur_frm.doc.mobile_no){
+ html += `
+ Mobile
+
+
+ ${cur_frm.doc.mobile_no}
+
` ;
+ }
+
+ html += `
+ Status
+
+
+ ${cur_frm.doc.status}
+
` ;
+ html = `${html}
`;
+ cur_frm.dashboard.set_headline_alert(html);
+ }
};
extend_cscript(cur_frm.cscript, new erpnext.LeadController({ frm: cur_frm }));
diff --git a/erpnext/crm/doctype/lead/lead.json b/erpnext/crm/doctype/lead/lead.json
index ed33d896f8..dc030fe819 100644
--- a/erpnext/crm/doctype/lead/lead.json
+++ b/erpnext/crm/doctype/lead/lead.json
@@ -486,7 +486,7 @@
"idx": 5,
"image_field": "image",
"links": [],
- "modified": "2021-06-17 00:20:37.768449",
+ "modified": "2021-07-28 00:20:37.768449",
"modified_by": "Administrator",
"module": "CRM",
"name": "Lead",