From ed8ee1c477329cca418d5d6788262e309c798403 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Tue, 25 May 2021 11:55:59 +0100 Subject: [PATCH] Fix bug when update Visa Wallet --- application/controllers/Gestion.php | 5 +++-- application/language/french/message_lang.php | 2 +- application/views/gestion_wallet_hyp.php | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/application/controllers/Gestion.php b/application/controllers/Gestion.php index df5b23cb..57363415 100755 --- a/application/controllers/Gestion.php +++ b/application/controllers/Gestion.php @@ -1667,6 +1667,7 @@ class Gestion extends CI_Controller $network_id = $_POST['network_id']; $type = $_POST['type']; + $res = false; if($method == 'create') { $res = $this->wallet_model->addConfigWallet($network_id , $type); @@ -1674,9 +1675,9 @@ class Gestion extends CI_Controller // $this->generateAllWallets($network_id); } - else if($method = 'update'){ + else if($method == 'update'){ - if($type == 'uba'){ + if($type == 'visa'){ $taux_client_r = $_POST['taux_client_r']; $taux_client_d = $_POST['taux_client_d']; $taux_ag_d = $_POST['taux_ag_d']; diff --git a/application/language/french/message_lang.php b/application/language/french/message_lang.php index 527b4269..cfb31e57 100755 --- a/application/language/french/message_lang.php +++ b/application/language/french/message_lang.php @@ -309,7 +309,7 @@ $lang['management_rule'] = 'Règle de gestion'; $lang['first_rule'] = 'La somme des % des retraits de l\'agent et du superviseur doit être inférieur à 100.'; $lang['second_rule'] = 'La somme des % des dépots de l\'agent et du superviseur doit être inférieur à 100.'; - $lang['third_rule'] = 'La somme des % des reuptraits doit être inférieur au taux client de retrait.'; + $lang['third_rule'] = 'La somme des % des retraits doit être inférieur au taux client de retrait.'; $lang['fourth_rule'] = 'La somme des % des dépots doit être inférieur à 100.'; $lang['wallet_created'] = 'Nouveau wallet créé'; $lang['wallet_deleted'] = 'Wallet supprimé'; diff --git a/application/views/gestion_wallet_hyp.php b/application/views/gestion_wallet_hyp.php index 6370f280..5dede69f 100755 --- a/application/views/gestion_wallet_hyp.php +++ b/application/views/gestion_wallet_hyp.php @@ -725,7 +725,8 @@ echo base_url('bower_components/jvectormap/jquery-jvectormap.css') ?>"> "taux_sup_d": taux_sup_d, "taux_bq_r": taux_bq_r, "taux_bq_d": taux_bq_d, - "frais_d": frais_d + "frais_d": frais_d, + "type" : "visa" }, success: function (data) { if(data=='200'){