feat: default print format for Request for Quotation

This commit is contained in:
khushi8112
2026-03-18 15:26:57 +05:30
parent 75ce885684
commit 2af0d9cf6c
7 changed files with 70 additions and 4 deletions

View File

@@ -4338,6 +4338,8 @@ def get_missing_company_details(doctype: str, docname: str):
company = frappe.db.get_value(doctype, docname, "company")
if doctype in ["Purchase Order", "Purchase Invoice"]:
company_address = frappe.db.get_value(doctype, docname, "billing_address")
elif doctype in ["Request for Quotation"]:
company_address = frappe.db.get_value(doctype, docname, "shipping_address")
else:
company_address = frappe.db.get_value(doctype, docname, "company_address")
@@ -4437,6 +4439,7 @@ def update_doc_company_address(current_doctype, docname, company_address, detail
"Sales Invoice": ("company_address", "company_address_display"),
"Delivery Note": ("company_address", "company_address_display"),
"POS Invoice": ("company_address", "company_address_display"),
"Request for Quotation": ("shipping_address", "shipping_address_display"),
}
address_field, display_field = address_field_map.get(