fix(selling): use preferred addresses in customer quotations

This commit is contained in:
pandiyan
2026-09-23 18:45:02 +05:30
parent 879c5c72a1
commit e291ce2616

View File

@@ -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"