Skip to content

Commit

Permalink
Merge pull request #38063 from barredterra/remove-create-contact
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra authored Nov 13, 2023
2 parents 8062d2b + d380bf8 commit e07c3aa
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions erpnext/selling/doctype/customer/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,23 +307,6 @@ def set_loyalty_program(self):
)


def create_contact(contact, party_type, party, email):
"""Create contact based on given contact name"""
first, middle, last = parse_full_name(contact)
doc = frappe.get_doc(
{
"doctype": "Contact",
"first_name": first,
"middle_name": middle,
"last_name": last,
"is_primary_contact": 1,
}
)
doc.append("email_ids", dict(email_id=email, is_primary=1))
doc.append("links", dict(link_doctype=party_type, link_name=party))
return doc.insert()


@frappe.whitelist()
def make_quotation(source_name, target_doc=None):
def set_missing_values(source, target):
Expand Down

0 comments on commit e07c3aa

Please sign in to comment.