Merge pull request #27026 from ankush/eq_assign

fix: equality check instead of assignment


[skip ci]
This commit is contained in:
Ankush Menat 2021-08-19 15:43:34 +05:30 committed by GitHub
parent 5b54d0436b
commit 993b0532f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,7 +308,7 @@ def update_party(fullname, company_name=None, mobile_no=None, phone=None):
party = get_party()
party.customer_name = company_name or fullname
party.customer_type == "Company" if company_name else "Individual"
party.customer_type = "Company" if company_name else "Individual"
contact_name = frappe.db.get_value("Contact", {"email_id": frappe.session.user})
contact = frappe.get_doc("Contact", contact_name)