This commit is contained in:
Casey 2025-12-03 14:55:25 -06:00
parent 2473bdfe89
commit 483942d2ca

View File

@ -130,6 +130,8 @@ def send_estimate_email(estimate_name):
template = frappe.get_doc("Email Template", template_name)
message = frappe.render_template(template.response, {"name": quotation.name})
subject = frappe.render_template(template.subject, {"doc": quotation})
print("DEBUG: Message: ", message)
print("DEBUG: Subject: ", subject)
html = frappe.get_print("Quotation", quotation.name, print_format="Quotation - SNW - Standard", letterhead=True)
print("DEBUG: Generated HTML for PDF.")
pdf = get_pdf(html)