From 483942d2ca258e3f9862ec2439d4961fccfb401e Mon Sep 17 00:00:00 2001 From: Casey Date: Wed, 3 Dec 2025 14:55:25 -0600 Subject: [PATCH] log body --- custom_ui/api/db/estimates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_ui/api/db/estimates.py b/custom_ui/api/db/estimates.py index 32b1598..7070680 100644 --- a/custom_ui/api/db/estimates.py +++ b/custom_ui/api/db/estimates.py @@ -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)