From 58c032f98918a688e79b1f5f295b0f7423e9e5ae Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Thu, 7 Jul 2022 21:46:36 +1000 Subject: [PATCH] Fix Invoice and OrderAck e mail template Closes #50 --- app/controllers/documents_controller.php | 4 +++- app/views/elements/email/html/invoice_email.ctp | 2 +- app/views/elements/email/html/orderAck_email.ctp | 2 +- app/views/elements/email/text/invoice_email.ctp | 2 +- app/views/elements/email/text/orderAck_email.ctp | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/controllers/documents_controller.php b/app/controllers/documents_controller.php index 9ee3bd36..8a92543c 100755 --- a/app/controllers/documents_controller.php +++ b/app/controllers/documents_controller.php @@ -983,8 +983,10 @@ EOT; if ($document['OrderAcknowledgement']['signature_required']) { $template = 'orderAck_email_signature_required'; } + break; case 'packingList': - $subject .= "Packing List"; + $subject = "Packing List: ".$enquiry['Enquiry']['title']; + break; } diff --git a/app/views/elements/email/html/invoice_email.ctp b/app/views/elements/email/html/invoice_email.ctp index bec514c3..3e8ef597 100755 --- a/app/views/elements/email/html/invoice_email.ctp +++ b/app/views/elements/email/html/invoice_email.ctp @@ -1,7 +1,7 @@ Dear ,

-Thank you for your Purchase Order # . Please see attached the Tax Invoice for your +Thank you for your Purchase Order #. Please see attached the Tax Invoice for your processing. Please send us a copy of the remittance once payment has been made. Please include our invoice number as a reference with your payment.

diff --git a/app/views/elements/email/html/orderAck_email.ctp b/app/views/elements/email/html/orderAck_email.ctp index a85eabb2..8c79f446 100755 --- a/app/views/elements/email/html/orderAck_email.ctp +++ b/app/views/elements/email/html/orderAck_email.ctp @@ -1,6 +1,6 @@ Dear ,

-

Thank you for your Purchase Order # . +

Thank you for your Purchase Order #.

Should you have any questions regarding your enquiry or quotation, please reply to this email or diff --git a/app/views/elements/email/text/invoice_email.ctp b/app/views/elements/email/text/invoice_email.ctp index 2655bc32..2fdb6944 100755 --- a/app/views/elements/email/text/invoice_email.ctp +++ b/app/views/elements/email/text/invoice_email.ctp @@ -1,6 +1,6 @@ Dear , -Thank you for your Purchase Order # . Please see attached the Tax Invoice for your +Thank you for your Purchase Order #. Please see attached the Tax Invoice for your processing. Please send us a copy of the remittance once payment has been made. Please include our invoice number as a reference with your payment. diff --git a/app/views/elements/email/text/orderAck_email.ctp b/app/views/elements/email/text/orderAck_email.ctp index 02f8eac7..c374699e 100755 --- a/app/views/elements/email/text/orderAck_email.ctp +++ b/app/views/elements/email/text/orderAck_email.ctp @@ -1,6 +1,6 @@ Dear , -Thank you for your Purchase Order # . Please find attached the Order Acknowledgement for your review. +Thank you for your Purchase Order # . Please find attached the Order Acknowledgement for your review. Should you have any questions regarding your enquiry or quotation, please reply to this email or reference to expedite our response time.