mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 18:34:48 +00:00
Merge pull request #38063 from barredterra/remove-create-contact
This commit is contained in:
@@ -307,23 +307,6 @@ class Customer(TransactionBase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
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()
|
@frappe.whitelist()
|
||||||
def make_quotation(source_name, target_doc=None):
|
def make_quotation(source_name, target_doc=None):
|
||||||
def set_missing_values(source, target):
|
def set_missing_values(source, target):
|
||||||
|
|||||||
Reference in New Issue
Block a user