Skip to content

Commit

Permalink
chore: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Dec 31, 2023
1 parent 8d51d43 commit 08bd647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/selling/doctype/customer/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def make_contact(args, is_primary_contact=1):
party_type = args.customer_type if args.doctype == "Customer" else args.supplier_type
party_name_key = "customer_name" if args.doctype == "Customer" else "supplier_name"

if party_type == "Individual":
if party_type == "Individual":
first, middle, last = parse_full_name(args.get(party_name_key))
values.update(
{
Expand All @@ -710,7 +710,7 @@ def make_contact(args, is_primary_contact=1):
"company_name": args.get(party_name_key),
}
)

contact = frappe.get_doc(values)

if args.get("email_id"):
Expand Down

0 comments on commit 08bd647

Please sign in to comment.