mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-25 13:03:02 +00:00
[fixes] set lead to Null on delete company transaction & other minor fixes
This commit is contained in:
@@ -89,7 +89,7 @@ def delete_lead_addresses(company_name):
|
||||
frappe.db.sql("""delete from `tabDynamic Link` where link_doctype='Lead' and parenttype='Address'
|
||||
and link_name in ({leads})""".format(leads=",".join(leads)), debug=True)
|
||||
|
||||
frappe.db.sql("""update tabCustomer set lead_name='' where lead_name in ({leads})""".format(leads=",".join(leads)), debug=True)
|
||||
frappe.db.sql("""update tabCustomer set lead_name=NULL where lead_name in ({leads})""".format(leads=",".join(leads)), debug=True)
|
||||
|
||||
def delete_communications(doctype, company_name, company_fieldname):
|
||||
frappe.db.sql("""
|
||||
|
||||
Reference in New Issue
Block a user