From 148f0466ede4f892848ed1ada9bbada75541287c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 4 May 2021 18:43:16 +1000 Subject: [PATCH] FIxes for Entity Created messageS" --- app/Mail/Admin/EntityCreatedObject.php | 8 ++++---- resources/lang/en/texts.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Mail/Admin/EntityCreatedObject.php b/app/Mail/Admin/EntityCreatedObject.php index f33c7cd540ce..ba773ac3c5f9 100644 --- a/app/Mail/Admin/EntityCreatedObject.php +++ b/app/Mail/Admin/EntityCreatedObject.php @@ -62,20 +62,20 @@ class EntityCreatedObject switch ($this->entity_type) { case 'invoice': $this->template_subject = "texts.notification_invoice_created_subject"; - $this->template_body = "texts.notification_invoice_sent"; + $this->template_body = "texts.notification_invoice_created_body"; break; case 'quote': $this->template_subject = "texts.notification_quote_created_subject"; - $this->template_body = "texts.notification_quote_sent"; + $this->template_body = "texts.notification_quote_created_body"; break; case 'credit': $this->template_subject = "texts.notification_credit_created_subject"; - $this->template_body = "texts.notification_credit_sent"; + $this->template_body = "texts.notification_credit_created_body"; break; default: $this->template_subject = "texts.notification_invoice_created_subject"; - $this->template_body = "texts.notification_invoice_sent"; + $this->template_body = "texts.notification_invoice_created_body"; break; } } diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 1bebb2cc44cf..4adf5fa1d78d 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -4229,11 +4229,11 @@ $LANG = array( 'amount_greater_than_balance_v5' => 'The amount is greater than the invoice balance. You cannot overpay an invoice.', 'click_to_continue' => 'Click to continue', - 'notification_invoice_created_subject' => 'Invoice :invoice was created to :client', + 'notification_invoice_created_body' => 'The following invoice :invoice was created for client :client for :amount.', 'notification_invoice_created_subject' => 'Invoice :invoice was created for :client', - 'notification_quote_created_subject' => 'Quote :invoice was created to :client', + 'notification_quote_created_body' => 'The following quote :invoice was created for client :client for :amount.', 'notification_quote_created_subject' => 'Quote :invoice was created for :client', - 'notification_credit_created_subject' => 'Credit :invoice was created to :client', + 'notification_credit_created_body' => 'The following credit :invoice was created for client :client for :amount.', 'notification_credit_created_subject' => 'Credit :invoice was created for :client', 'max_companies' => 'Maximum companies migrated', 'max_companies_desc' => 'You have reached your maximum number of companies. Delete existing companies to migrate new ones.',