diff --git a/application/views/gestion_wallet.php b/application/views/gestion_wallet.php
index ae1ff4b4..d6e722d4 100644
--- a/application/views/gestion_wallet.php
+++ b/application/views/gestion_wallet.php
@@ -347,11 +347,12 @@ if ($transactions != false) {
" . $walletHyper->first_row()->lastname . " |
- " . $walletHyper->first_row()->balance_princ . " |
- " . $walletHyper->first_row()->balance_com . " |
- " . $totalCommissionBanque . " | ";
+ " . $fmt->format($walletHyper->first_row()->balance_princ) . " |
+ " . $fmt->format($walletHyper->first_row()->balance_com) . " |
+ " . $fmt->format($totalCommissionBanque) . " | ";
echo "" . $depots->num_rows() . " |
" . $retraits->num_rows() . " |
diff --git a/application/views/gestion_wallet_hyp.php b/application/views/gestion_wallet_hyp.php
index c89f9de7..188127b2 100644
--- a/application/views/gestion_wallet_hyp.php
+++ b/application/views/gestion_wallet_hyp.php
@@ -131,6 +131,7 @@
$pieChart = array();
}
+ $fmt = new NumberFormatter( 'fr_FR', NumberFormatter::DECIMAL );
?>
@@ -175,7 +176,7 @@
-
FCFA
+
format($principal); ?>FCFA
Solde principal
@@ -188,7 +189,7 @@
-
FCFA
+
format($commission); ?>FCFA
Solde commission
@@ -200,7 +201,7 @@
-
FCFA
+
format($totalCommissionBanque); ?>FCFA
Total commission de la banque
@@ -269,8 +270,8 @@
}
echo "
".$row->lastname." |
- ".$princ." |
- ".$com." | ";
+ ".$fmt->format($princ)." |
+ ".$fmt->format($com)." | ";
$nb_depots = 0;
$nb_retraits = 0;
$commission_banque = 0;
@@ -286,7 +287,7 @@
$commission_banque+= $retrait->commission_banque;
}
}
- echo "".$commission_banque." |
+ echo "".$fmt->format($commission_banque)." |
".$nb_depots." |
".$nb_retraits." |
";
diff --git a/application/views/gestion_wallet_sup.php b/application/views/gestion_wallet_sup.php
index 0ba0890f..d716b36d 100644
--- a/application/views/gestion_wallet_sup.php
+++ b/application/views/gestion_wallet_sup.php
@@ -132,7 +132,7 @@
}else{
$pieChart = array();
}
-
+$fmt = new NumberFormatter( 'fr_FR', NumberFormatter::DECIMAL );
?>
@@ -176,7 +176,7 @@
-
FCFA
+
format($principal); ?>FCFA
Solde principal
@@ -188,7 +188,7 @@
-
FCFA
+
format($commission); ?>FCFA
Solde commission
@@ -200,7 +200,7 @@
-
FCFA
+
format($totalCommissionBanque); ?>FCFA
Total commission de la banque
@@ -269,8 +269,8 @@
}
echo "
".$row->lastname." |
- ".$princ." |
- ".$com." | ";
+ ".$fmt->format($princ)." |
+ ".$fmt->format($com)." | ";
$nb_depots = 0;
$nb_retraits = 0;
$commission_banque = 0;
@@ -286,7 +286,7 @@
$commission_banque+= $retrait->commission_banque;
}
}
- echo "".$commission_banque." |
+ echo "".$fmt->format($commission_banque)." |
".$nb_depots." |
".$nb_retraits." |
";
diff --git a/application/views/historique_transactions.php b/application/views/historique_transactions.php
index 29dca52c..dfe16186 100755
--- a/application/views/historique_transactions.php
+++ b/application/views/historique_transactions.php
@@ -94,9 +94,10 @@
foreach ($transactions as $row) {
$num++;
+ $type = $row->type_transac == 'credit' ? 'DEPOT' : 'RETRAIT';
echo "
$row->id |
- ".strtoupper($row->type_transac)." |
+ ".strtoupper($type)." |
".$fmt->format($row->montant)." |
".$fmt->format( $row->commission_banque)." |
".$fmt->format( $row->commission_hyp)." |