diff --git a/app/Http/Controllers/iLinkTransactionController.php b/app/Http/Controllers/iLinkTransactionController.php index 7580560..4fbfb4b 100755 --- a/app/Http/Controllers/iLinkTransactionController.php +++ b/app/Http/Controllers/iLinkTransactionController.php @@ -2378,7 +2378,7 @@ class iLinkTransactionController extends Controller $frais += $fees; $taxe = $this->calculateTax($init_country != $final_country ? $taxesInternationales : $taxesNationales, $frais); $data['frais'] = round($frais + $taxe, 2); - $data['montant_net_init'] = $request->montant + $data['frais']; + $data['montant_net_init'] = round($request->montant + $data['frais'],2); $data['exchange_rate'] = $this->getExchangeRate($init_country, $final_country); $data['montant_net_final'] = $this->toMoneyWithCurrency(round($request->montant, 2), $init_country, $final_country); break; @@ -2397,7 +2397,7 @@ class iLinkTransactionController extends Controller $frais += $fees; $taxe = $this->calculateTax($init_country != $final_country ? $taxesInternationales : $taxesNationales, $frais); $data['frais'] = round($frais + $taxe, 2); - $data['montant_net_init'] = $request->montant + $data['frais']; + $data['montant_net_init'] = round($request->montant + $data['frais'], 2); $data['exchange_rate'] = $this->getExchangeRate($init_country, $final_country); $data['montant_net_final'] = $this->toMoneyWithCurrency(round($request->montant, 2), $init_country, $final_country); break;