From f41f4011d4e82a984179e1a6691c12ee4b5ff799 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Wed, 11 Oct 2023 14:46:38 +0100 Subject: [PATCH] fix: response field in commission --- 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 a013043..d287021 100755 --- a/app/Http/Controllers/iLinkTransactionController.php +++ b/app/Http/Controllers/iLinkTransactionController.php @@ -2529,7 +2529,7 @@ class iLinkTransactionController extends Controller $taxe = $this->calculateTax($init_country != $request->final_country ? $taxesInternationales : $taxesNationales, $frais); $data['frais'] = round($frais + $taxe, 2); $data['exchange_rate'] = $this->getExchangeRate($init_country, $request->final_country); - $data['montant_net'] = round($request->montant + $data['frais'], 2); + $data['montant_net_init'] = round($request->montant + $data['frais'], 2); $data['montant_net_final'] = $this->toMoneyWithCurrency($request->montant, $init_country, $request->final_country); break; default: