From dc5b96403c7bd4a34c71861b4d204fbf78126c82 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Sat, 3 Jun 2023 19:02:41 +0800 Subject: [PATCH 1/2] update email payment proof --- resources/views/emails/accounts/payment_proof_email.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/emails/accounts/payment_proof_email.blade.php b/resources/views/emails/accounts/payment_proof_email.blade.php index 8d888671..eb1357ea 100644 --- a/resources/views/emails/accounts/payment_proof_email.blade.php +++ b/resources/views/emails/accounts/payment_proof_email.blade.php @@ -1,7 +1,7 @@ @extends('emails.layout.base') @section('content') -

Dear {{$user->name}},

+

Dear {{ucwords($user->name)}},

Thank you for using CIEF Exchange service!

We have completed your RMB transfer transaction for the ref. no {{$booking->marking}}. The RMB bank slip has been attached to this email. If you would like to view the transaction, please click on the following link:

From 763902879d68ea340c61fa8f03fe71ef411af6eb Mon Sep 17 00:00:00 2001 From: edmondlang Date: Sat, 3 Jun 2023 19:19:35 +0800 Subject: [PATCH 2/2] update send email payment proof, send email only in production --- .../ControllersLogic/CreatePaymentProofDocumentLogic.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePaymentProofDocumentLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePaymentProofDocumentLogic.php index 778362aa..00ca9a85 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePaymentProofDocumentLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePaymentProofDocumentLogic.php @@ -94,11 +94,12 @@ class CreatePaymentProofDocumentLogic extends AbstractControllerLogic $this->createInvoiceTransactionProcessor->execute($transaction->owner->booking); // send email to customer - // todo: send them the file also // todo: a function to send a proof to the receipiant, they have to give us a email of the receipiant and also need to submiited purchase order - $companyEmployee = $transaction->owner->booking->company->employees; - foreach ($companyEmployee as $employee) { - $this->sendUserPaymentProofUploadedEmail::dispatch($employee, $transaction->owner->booking, $file[0]); + if (app()->environment('production')) { + $companyEmployee = $transaction->owner->booking->company->employees; + foreach ($companyEmployee as $employee) { + $this->sendUserPaymentProofUploadedEmail::dispatch($employee, $transaction->owner->booking, $file[0]); + } } return $this->response([]);