Skip to content

Commit

Permalink
style: remove trailing whitespace (#38183)
Browse files Browse the repository at this point in the history
(cherry picked from commit ff5b1b7)

# Conflicts:
#	erpnext/selling/doctype/customer/customer.py
  • Loading branch information
barredterra authored and mergify[bot] committed Nov 18, 2023
1 parent d89a9a5 commit 899d25b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions erpnext/selling/doctype/customer/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,17 @@ def make_contact(args, is_primary_contact=1):
"is_primary_contact": is_primary_contact,
"links": [{"link_doctype": args.get("doctype"), "link_name": args.get("name")}],
}
<<<<<<< HEAD
if args.customer_type == "Individual":
first, middle, last = parse_full_name(args.get("customer_name"))
=======

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":
first, middle, last = parse_full_name(args.get(party_name_key))
>>>>>>> ff5b1b7ded (style: remove trailing whitespace (#38183))
values.update(
{
"first_name": first,
Expand All @@ -659,6 +668,10 @@ def make_contact(args, is_primary_contact=1):
"company_name": args.get("customer_name"),
}
)
<<<<<<< HEAD
=======

>>>>>>> ff5b1b7ded (style: remove trailing whitespace (#38183))
contact = frappe.get_doc(values)

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

0 comments on commit 899d25b

Please sign in to comment.