diff --git a/public/js/modals/email-modal.js b/public/js/modals/email-modal.js index a019633..dfcc79f 100644 --- a/public/js/modals/email-modal.js +++ b/public/js/modals/email-modal.js @@ -135,10 +135,10 @@ function renderModalContent() { } else { paymentText = 'Our terms are Net 30.'; } - + const customerName = currentInvoice.customer_name || 'Valued Customer'; const defaultHtml = ` -

Good afternoon,

-

Attached is invoice #${invoiceNum} for service performed at your location. The total amount due is $${totalDue}. ${paymentText}

+

Dear ${customerName},

+

Attached is invoice #${invoiceNum} for service performed at your location. The total amount due is $${totalDue}, ${paymentText}

Please pay at your earliest convenience. We appreciate your continued business.

If you have any questions about the invoice, feel free to reply to this email.

Best regards,