+ Update historic list v2
This commit is contained in:
parent
25d43c532b
commit
f7317e16a5
|
@ -152,23 +152,20 @@ use Brick\Money\Money;
|
|||
|
||||
$net = 0;
|
||||
$banque = 0;
|
||||
if($row->type_transaction == 'depot'){
|
||||
$net = $row->montant_depot;
|
||||
$banque = $row->montant * (1 - ($config->taux_com_client_depot / 100));
|
||||
}else{
|
||||
$net = $row->montant_retrait ;
|
||||
}
|
||||
$moneyNetInit = Money::of(round($net,2), $row->init_currency,$context);
|
||||
// if($row->type_transaction == 'depot'){
|
||||
// $net = $row->montant_depot;
|
||||
// $banque = $row->montant * (1 - ($config->taux_com_client_depot / 100));
|
||||
// }else{
|
||||
// $net = $row->montant_retrait ;
|
||||
// }
|
||||
$moneyNetInit = Money::of(round($row->montant_net ,2), $row->init_currency,$context);
|
||||
if($row->destinataire_phone){
|
||||
$destinataire = $row->destinataire_phone.' | '.$row->destinataire_name;
|
||||
}else{
|
||||
if($row->id_destinataire){
|
||||
$destinataire = $row->id_destinataire;
|
||||
}else{
|
||||
$destinataire =$row->nom_destinataire.' '.$row->prenom_destinataire ;
|
||||
}
|
||||
$destinataire = ($row->id_destinataire ? $row->id_destinataire.' | ' : '').($row->nom_destinataire ? $row->nom_destinataire : '').(' '.$row->prenom_destinataire? $row->prenom_destinataire : '');
|
||||
|
||||
}
|
||||
$moneyNetFinal = $converter->convert($moneyNetInit, $row->final_currency ? $row->final_currency : 'XAF', RoundingMode::DOWN);
|
||||
$moneyNetFinal =Money::of(round($row->montant_net_final_country,2),$row->final_currency ? $row->final_currency : 'XAF',$context);
|
||||
echo "<tr>
|
||||
<td align='center' >$row->id_transaction</td>
|
||||
<td>".strtoupper($row->acteur).' - '.$row->operation."</td>
|
||||
|
|
Loading…
Reference in New Issue