fix: sider issues

This commit is contained in:
Anupam 2021-07-29 10:43:21 +05:30
parent 47a651a80f
commit a6ce1244a0
2 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ erpnext.LeadController = class LeadController extends frappe.ui.form.Controller
render_basic_info_html() { render_basic_info_html() {
let html=''; let html='';
if (cur_frm.doc.lead_owner){ if (cur_frm.doc.lead_owner) {
html += `<div class="col-xs-2"> html += `<div class="col-xs-2">
<span><b> Lead Owner </b></span> <span><b> Lead Owner </b></span>
</div> </div>
@ -94,7 +94,7 @@ erpnext.LeadController = class LeadController extends frappe.ui.form.Controller
</div>` ; </div>` ;
} }
if (cur_frm.doc.email_id){ if (cur_frm.doc.email_id) {
html += `<div class="col-xs-2"> html += `<div class="col-xs-2">
<span><b> Email </b></span> <span><b> Email </b></span>
</div> </div>
@ -103,7 +103,7 @@ erpnext.LeadController = class LeadController extends frappe.ui.form.Controller
</div>` ; </div>` ;
} }
if (cur_frm.doc.mobile_no){ if (cur_frm.doc.mobile_no) {
html += `<div class="col-xs-2"> html += `<div class="col-xs-2">
<span><b> Mobile </b></span> <span><b> Mobile </b></span>
</div> </div>

View File

@ -95,7 +95,7 @@ class Lead(SellingController):
if d.link_doctype == self.doctype and d.link_name == self.name: if d.link_doctype == self.doctype and d.link_name == self.name:
to_remove = d to_remove = d
if to_remove: if to_remove:
link_doctype.remove(to_remove) linked_doc.remove(to_remove)
def has_customer(self): def has_customer(self):
return frappe.db.get_value("Customer", {"lead_name": self.name}) return frappe.db.get_value("Customer", {"lead_name": self.name})