From e5ccbaf6c0319a3cbf1d90154546b894e281e0e1 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Wed, 11 Oct 2023 13:50:16 +0100 Subject: [PATCH] fix: transaction amount while doing withdraw user to wallet --- app/Http/Controllers/iLinkTransactionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/iLinkTransactionController.php b/app/Http/Controllers/iLinkTransactionController.php index d0bd7c2..a013043 100755 --- a/app/Http/Controllers/iLinkTransactionController.php +++ b/app/Http/Controllers/iLinkTransactionController.php @@ -2005,7 +2005,7 @@ class iLinkTransactionController extends Controller $transaction->date = $this->getCurrentTime($init_country); $transaction->save(); $message = trans('messages.successful_user_remove_from_cart_to_other_wallet', - ['id_transaction' => $transaction->id_transaction, 'amount' => $this->toMoney($transaction->montant, $init_country), + ['id_transaction' => $transaction->id_transaction, 'amount' => $this->toMoney($transaction->montant, $init_country),'net_final' => $this->toMoney($transaction->montant_net_final_country, $request->final_country), 'total' => $this->toMoney($montantRetrait, $init_country), 'fees' => $this->toMoney($frais, $init_country),'init_country' => $this->getCountryName($init_country), 'final_country' => $this->getCountryName($request->final_country), 'sender_code' => $transaction->id_destinataire, 'cart_number' => wordwrap($transaction->numero_carte, 4, ' ', true)]); $this->sendMail($user->email, trans('messages.successful_transaction'), $message);