+ Update calculated commission result
This commit is contained in:
parent
67f46c363a
commit
c5d6373fde
|
@ -647,8 +647,8 @@ class iLinkTransactionController extends Controller
|
|||
$taxe = ($init_country != $request->final_country) ? $this->calculateTax($taxesInternationales, $frais) : $this->calculateTax($taxesNationales, $frais);
|
||||
$destinataire = User::where('user_code', $request->id_destinataire)->first();
|
||||
$data['destinataire'] = $destinataire ? $destinataire->lastname . ' ' . $destinataire->firstname : $request->id_destinataire;
|
||||
$data['frais'] = $this->toMoney($frais + $taxe, $init_country);
|
||||
$data['montant_net_init'] = $this->toMoney($request->montant - $frais - $taxe, $init_country);
|
||||
$data['frais'] = $frais + $taxe;
|
||||
$data['montant_net_init'] = $request->montant - $frais - $taxe;
|
||||
$data['montant_net_final'] = $this->toMoneyWithCurrency($request->montant - $frais - $taxe, $init_country ,$request->final_country );
|
||||
return $this->successResponse($data);
|
||||
break;
|
||||
|
@ -695,7 +695,7 @@ class iLinkTransactionController extends Controller
|
|||
return $max * $paliers[$size - 1]->taux / 100;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue