From bfd3a246e480bf348fca2804867ff7629898c4c4 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Thu, 25 Jun 2020 20:27:43 +0100 Subject: [PATCH] + Fix bugs of currency rounding v2 --- application/controllers/Hyperviseur_dash.php | 2 +- application/views/gestion_wallet_autre.php | 2 +- application/views/gestion_wallet_ilink.php | 2 +- application/views/gestion_wallet_ilink_hyp.php | 2 +- .../views/gestion_wallet_ilink_paying_network_account.php | 2 +- application/views/historique_transactions_ilink.php | 3 ++- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/application/controllers/Hyperviseur_dash.php b/application/controllers/Hyperviseur_dash.php index 7635c282..51b7fe28 100755 --- a/application/controllers/Hyperviseur_dash.php +++ b/application/controllers/Hyperviseur_dash.php @@ -326,7 +326,7 @@ class Hyperviseur_dash extends CI_Controller } elseif ($this->input->get('show')) { $this->show_config_infos($this->input->get('show')); }else { - $context = new CustomContext(2); + $context = new AutoContext(); $data["commission"] = ""; $data["principal"] = ""; diff --git a/application/views/gestion_wallet_autre.php b/application/views/gestion_wallet_autre.php index 45fc165e..cd77c35e 100755 --- a/application/views/gestion_wallet_autre.php +++ b/application/views/gestion_wallet_autre.php @@ -11,7 +11,7 @@ use Brick\Money\Context\CustomContext; use Brick\Money\Money; -$context = new CustomContext(2); +$context = new \Brick\Money\Context\AutoContext(); function convertDate($date) { $month = null; diff --git a/application/views/gestion_wallet_ilink.php b/application/views/gestion_wallet_ilink.php index 96af15d3..cd565033 100755 --- a/application/views/gestion_wallet_ilink.php +++ b/application/views/gestion_wallet_ilink.php @@ -10,7 +10,7 @@ use Brick\Money\Context\CustomContext; use Brick\Money\Money; -$context = new CustomContext(2); +$context = new \Brick\Money\Context\AutoContext(); function convertDate($date) { $month = null; diff --git a/application/views/gestion_wallet_ilink_hyp.php b/application/views/gestion_wallet_ilink_hyp.php index 85c6949e..60330389 100755 --- a/application/views/gestion_wallet_ilink_hyp.php +++ b/application/views/gestion_wallet_ilink_hyp.php @@ -95,7 +95,7 @@ use Brick\Money\Context\CustomContext; use Brick\Money\Money; -$context = new CustomContext(2); +$context = new \Brick\Money\Context\AutoContext(); function convertDate($date){ $month = null; switch ($date) { diff --git a/application/views/gestion_wallet_ilink_paying_network_account.php b/application/views/gestion_wallet_ilink_paying_network_account.php index 2281091e..bcddb098 100755 --- a/application/views/gestion_wallet_ilink_paying_network_account.php +++ b/application/views/gestion_wallet_ilink_paying_network_account.php @@ -14,7 +14,7 @@ use Brick\Money\Context\CustomContext; use Brick\Money\Money; - $context = new CustomContext(2); + $context = new \Brick\Money\Context\AutoContext(); $site_url = base_url(); if ($alert == "ok") { diff --git a/application/views/historique_transactions_ilink.php b/application/views/historique_transactions_ilink.php index bad2c51c..6e1f5917 100755 --- a/application/views/historique_transactions_ilink.php +++ b/application/views/historique_transactions_ilink.php @@ -7,6 +7,7 @@