fixed empty email body

This commit is contained in:
Casey 2025-12-03 14:54:46 -06:00
parent fa9d64bb1a
commit 2473bdfe89
3 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ def send_estimate_email(estimate_name):
# email = "casey@shilohcode.com"
template_name = "Quote with Actions - SNW"
template = frappe.get_doc("Email Template", template_name)
message = frappe.render_template(template.response, {"doc": quotation})
message = frappe.render_template(template.response, {"name": quotation.name})
subject = frappe.render_template(template.subject, {"doc": quotation})
html = frappe.get_print("Quotation", quotation.name, print_format="Quotation - SNW - Standard", letterhead=True)
print("DEBUG: Generated HTML for PDF.")

View File

@ -4,7 +4,7 @@
<div v-if="meeting" class="meeting-details">
<div class="detail-row">
<v-icon class="mr-2">mdi-map-marker</v-icon>
<strong>Address:</strong> {{ meeting.address }}
<strong>Addresss:</strong> {{ meeting.address.fullAddress }}
</div>
<div class="detail-row" v-if="meeting.client">
<v-icon class="mr-2">mdi-account</v-icon>

View File

@ -124,7 +124,7 @@
<div class="event-time">
{{ formatTimeDisplay(meeting.scheduledTime) }}
</div>
<div class="event-address">{{ meeting.address }}</div>
<div class="event-address">{{ meeting.address.fullAddress }}</div>
<div class="event-client" v-if="meeting.client">
{{ meeting.client }}
</div>