diff --git a/application/views/calculator.php b/application/views/calculator.php index e938ba28..f5bbb13e 100755 --- a/application/views/calculator.php +++ b/application/views/calculator.php @@ -446,9 +446,9 @@ $converter = new CurrencyConverter($provider); currency_code ? @$d->currency_code : 'XAF'; - $moneyMontantRetrait = Money::of(round(@$montant_retrait, 0),$currency); - $moneyInit = Money::of(round(@$montant_init, 0),$currency); - $moneyFraisRetrait = Money::of(round(@$frais_retrait, 0),$currency); + $moneyMontantRetrait = Money::of(round(@$montant_retrait, 2),$currency,$context); + $moneyInit = Money::of(round(@$montant_init, 2),$currency,$context); + $moneyFraisRetrait = Money::of(round(@$frais_retrait, 2),$currency,$context); ?>
@@ -469,10 +469,10 @@ $converter = new CurrencyConverter($provider);
currency_code ? @$d->currency_code : 'XAF'; - $moneyComAg = Money::of(round(@$com_ag, 0),$currency); - $moneyComSup = Money::of(round(@$com_sup, 0),$currency); - $moneyComHyp = Money::of(round(@$com_hyp, 0),$currency); - $moneyComBq = Money::of(round(@$com_bq, 0),$currency); + $moneyComAg = Money::of(round(@$com_ag, 2),$currency,$context); + $moneyComSup = Money::of(round(@$com_sup, 2),$currency,$context); + $moneyComHyp = Money::of(round(@$com_hyp, 2),$currency,$context); + $moneyComBq = Money::of(round(@$com_bq, 2),$currency,$context); ?>