mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-24 05:47:15 +00:00
fix(selling): use preferred addresses in customer quotations
This commit is contained in:
@@ -441,15 +441,11 @@ def create_contact(contact, party_type, party, email):
|
||||
|
||||
@frappe.whitelist()
|
||||
def make_quotation(source_name, target_doc=None):
|
||||
def set_missing_values(source, target):
|
||||
_set_missing_values(source, target)
|
||||
|
||||
target_doc = get_mapped_doc(
|
||||
"Customer",
|
||||
source_name,
|
||||
{"Customer": {"doctype": "Quotation", "field_map": {"name": "party_name"}}},
|
||||
target_doc,
|
||||
set_missing_values,
|
||||
)
|
||||
|
||||
target_doc.quotation_to = "Customer"
|
||||
|
||||
Reference in New Issue
Block a user