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