fix(selling): use preferred addresses in customer quotations

This commit is contained in:
pandiyan
2026-09-23 18:45:02 +05:30
parent 1ead4cebcf
commit c019bb5c28

View File

@@ -464,15 +464,11 @@ class Customer(TransactionBase):
@frappe.whitelist()
def make_quotation(source_name: str, target_doc: str | Document | None = None) -> Document:
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"