diff --git a/application/config/constants.php b/application/config/constants.php
index 4c54c511..42f1d01d 100755
--- a/application/config/constants.php
+++ b/application/config/constants.php
@@ -95,3 +95,5 @@ define('NOTIFICATION_SERVICE_URL','https://ilink-app.com:8083');
define('NOTIFICATION_SERVICE_TOKEN','RfXvPQzQRgwpzQYPnLfWpZzgx4QseHlg');
define('NANO_SANTE_SERVICE_URL','https://ilink-app.com:8086');
define('NANO_SANTE_SERVICE_TOKEN','eStSQIoAfnTJ9nkCs0IJkJiKACxYVcQm');
+define('USER_SERVICE_URL','https://ilink-app.com:8088');
+define('USER_SERVICE_TOKEN','T3J0c9lQXPBs6UWebvPWWdnzqmqWOQM6');
diff --git a/application/controllers/Hyperviseur_dash.php b/application/controllers/Hyperviseur_dash.php
index 821c5fe3..96afd417 100755
--- a/application/controllers/Hyperviseur_dash.php
+++ b/application/controllers/Hyperviseur_dash.php
@@ -1356,6 +1356,7 @@ class Hyperviseur_dash extends CI_Controller
$data['category'] = $this->session->userdata('category');
$data['idConfig'] = $data['hasWallet']->first_row()->id;
$data['network_id'] = $this->session->userdata('network_id');
+ $data['currency_code'] = $this->session->userdata('currency_code');
if (isset($country)) {
$data['country_id'] = $country;
$data['country'] = $this->wallet_model->getCountry($country)->first_row();
@@ -1517,6 +1518,15 @@ class Hyperviseur_dash extends CI_Controller
$this->load->view('header_hyp', $data);
$this->load->view('config_wallet_ilink_hyp/taxes');
break;
+ case 'customers_accounts':
+ $data['types'] = $this->db->select('t.* , p.name as parent')
+ ->from('customer_account_types t')->join('customer_account_types p', 't.parent_id = p.id','left')->get()->result();
+ foreach ($data['types'] as $i => $type){
+ $data['types'][$i]->documents = $this->db->get_where('customer_account_type_documents',['account_type_id' => $type->id])->result();
+ }
+ $this->load->view('header_hyp', $data);
+ $this->load->view('config_wallet_ilink_hyp/customers_accounts');
+ break;
}
$this->load->view('footer');
}
@@ -2072,6 +2082,9 @@ class Hyperviseur_dash extends CI_Controller
}else if($role == 'controllers'){
$data['active'] = "wallet_validating_controllers";
$data['role'] = 'CONTROLLER';
+ }else if($role == 'account_opening_agents'){
+ $data['active'] = "wallet_validating_account_opening_agents";
+ $data['role'] = 'OPENING_ACCOUNT_AGENT';
}else{
$data['active'] = "wallet_validating_agents";
$data['role'] = 'AGENT';
@@ -2085,10 +2098,7 @@ class Hyperviseur_dash extends CI_Controller
$data['network_id'] = $this->session->userdata('network_id');
$data['hasWallet'] = $this->wallet_model->getConfigWallet($this->session->userdata('network_id'));
- $nh_config = $this->nano_health_model->getConfig($data['network_id']);
- $data['nh_config'] = $nh_config ? $nh_config->first_row() : null ;
- $data['config_id'] = $data['nh_config'] ? $data['nh_config']->id : null ;
- $data['agents'] = $this->db->get_where('nh_validating_agents',['nh_network_config_id' => $data['config_id'] , 'role' => $data['role']]);
+ $data['agents'] = $this->db->get_where('nh_validating_agents',['network_id' => $data['network_id'] , 'role' => $data['role']]);
$this->load->view('header_hyp', $data);
$this->load->view('nano_health/hyper/validating_agents');
@@ -2135,6 +2145,55 @@ class Hyperviseur_dash extends CI_Controller
$this->load->view('footer');
}
}
+
+ public function storeCustomerAccountType(){
+ if($this->isLogged()) {
+ if (isset($_POST)) {
+ $id = $_POST['id'] ?? null ;
+
+ $exist = $this->db->get_where('customer_account_types', ['id !=' => $id ,'network_id' => $_POST['network_id'] , 'name' => $_POST['name']]);
+ if ($exist->num_rows() == 0) {
+ foreach ($_POST as $key => $value){
+ if(empty($value)){
+ $_POST[$key] = null;
+ }
+ }
+ if(!empty($id)){
+ $documents = $_POST['documents'] ?? [] ;
+ unset($_POST['documents']);
+ $this->db->where('id',$id);
+ $this->db->update('customer_account_types',$_POST);
+ $this->db->delete('customer_account_type_documents',['account_type_id' => $id]);
+ if(sizeof($documents) > 0){
+ $data = array_map(function ($document) use($id){
+ $row = [];
+ $row['name'] = $document[0];
+ $row['description'] = $document[0];
+ $row['account_type_id'] = $id;
+ return $row;
+ },$documents);
+ $this->db->insert_batch('customer_account_type_documents',$data);
+ }
+ }else{
+ $this->db->insert('customer_account_types',$_POST);
+ }
+ echo json_encode(['code' => 200]);
+
+ }else{
+ echo json_encode(['code'=> 419 , 'message' => $this->lang->line("name_already_used")]);
+ }
+ }
+ }
+ }
+
+ public function deleteCustomerAccountType(){
+ if($this->isLogged()) {
+ if (isset($_POST)) {
+ $this->db->delete('customer_account_types', ['id' => $_POST['id']]);
+ echo json_encode(['code' => 200]);
+ }
+ }
+ }
}
class Operation
diff --git a/application/controllers/OpeningAccountAgent.php b/application/controllers/OpeningAccountAgent.php
new file mode 100755
index 00000000..a7d387ab
--- /dev/null
+++ b/application/controllers/OpeningAccountAgent.php
@@ -0,0 +1,109 @@
+load->model('opening_account_model');
+ }
+
+ public function index()
+ {
+ if ($this->isLogged()){
+ $data['active'] = "dashboard";
+ $data['network_id'] = $data['id_network'] = $this->session->userdata('network_id');
+
+ if ($this->input->get('history')) {
+ $history_type = $this->input->get('history');
+ $id = $this->input->get('id');
+ if($history_type == 'requests' && !empty($id)){
+ $data['active'] = "requests";
+ $data['invoice'] = $this->opening_account_model->getInfosOpeningAccountRequestId($id);
+ $data['agent'] = $this->db->get_where('agent_plus',['code_membre'=> $data['invoice']->institution_code ?? null])->first_row();
+ $data['health_care_sheets'] = $this->db->get_where('nh_infos_health_care_sheets',['invoice_id'=> $id]);
+ $this->load->view('account_opening_agent/header', $data);
+ $this->load->view('account_opening_agent/infos_invoice', $data);
+ $this->load->view('footer');
+ }else{
+ $this->history($this->input->get('d'), $this->input->get('f'), $this->input->get('history'), $data);
+ }
+ }else{
+
+ $data['count_accepted'] = $this->opening_account_model->getCountRequests(null,$this->session->userdata('agent_id'), 'ACCEPTED');
+ $data['count_rejected'] = $this->opening_account_model->getCountRequests(null,$this->session->userdata('agent_id'), 'REJECTED');
+ $data['count_under_validation'] = $this->opening_account_model->getCountRequests($data['network_id'],null, 'UNDER_VALIDATION');
+
+ $this->load->view('account_opening_agent/header', $data);
+ $this->load->view('account_opening_agent/dashboard', $data);
+ $this->load->view('footer');
+ }
+ }
+
+ }
+
+ public function history($networkId , $startDate , $endDate , $type){
+
+ $format = $this->session->userdata('site_lang') === 'french' ? 'd-m-Y' : 'Y-m-d';
+ $data['startDate'] = $startDate ? date($format, strtotime($startDate)) : null;
+ $data['endDate'] = $endDate ? date($format, strtotime($endDate)) : null;
+ $endDate = Date('Y-m-d', strtotime($endDate . "+1 day"));
+
+ $data['active'] = "subscription_requests";
+ $data['network'] = $this->session->userdata('network');
+ $data['id_network'] = $this->session->userdata('network_id');
+ $data['country'] = $this->session->userdata('current_pays');
+ $data['category'] = $this->session->userdata('role');
+
+// if ($type == 'customer_account_opening_requests'){
+// $data['active'] = 'requests';
+// }
+
+
+ $this->load->view('account_opening_agent/header', $data);
+ if ($type == 'customer_account_opening_requests')
+ $this->load->view('account_opening_agent/opening_account_requests');
+ $this->load->view('footer');
+ }
+
+ public function requests(){
+ if ($this->isLogged()) {
+ $data['id_network'] = $this->session->userdata('network_id');
+ $data['active'] = "requests";
+ $data['category'] = $this->session->userdata('role');
+
+ if ($this->input->get('history')) {
+ if ($this->input->get('id') !== null) {
+ $data['request'] = $this->opening_account_model->getInfosOpeningAccountRequestId($this->input->get('id'));
+ $data['user'] = $this->db->get_where('user_infos', ['user_id' => $data['subscription']->user_id ?? null])->first_row();
+ $data['documents'] = $this->opening_account_model->getOpeningAccountRequestDocuments($this->input->get('id'));
+ $this->load->view('account_opening_agent/header', $data);
+ $this->load->view('account_opening_agent/infos_opening_account_request');
+ $this->load->view('footer');
+ } else {
+ $this->history($data['id_network'], $this->input->get('d'), $this->input->get('f'), $this->input->get('history'));
+ }
+ }
+ }
+ }
+
+ public function treatRequest($request_id)
+ {
+ echo makeRequest('user-service', 'PUT','/customers_accounts_requests/'.$request_id.'/treat', $_POST);
+ }
+
+ private function isLogged()
+ {
+ if (!$this->session->userdata('email')) {
+ $this->session->set_flashdata('error', 'log in first');
+
+ $data['alert'] = "ok";
+ $data['message'] = "Login first!";
+
+ redirect('index.php', $data);
+ return false;
+ }
+ return true;
+ }
+}
diff --git a/application/controllers/Users.php b/application/controllers/Users.php
index 47fdcc34..0fa7e021 100755
--- a/application/controllers/Users.php
+++ b/application/controllers/Users.php
@@ -45,7 +45,7 @@
$data['adresse'] = $this->session->userdata('adresse');
$data['category'] = $this->session->userdata('category');
$data['network'] = $this->session->userdata('network');
- $data['network_id'] =
+ $data['network_id'] =
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network']);
$data['count_geo'] = $this->user_model->countUser("geolocated",$this->session->userdata('network'));
$data['count_sup'] = $this->user_model->countUser("super",$this->session->userdata('network'));
@@ -74,11 +74,10 @@
'user_role' => $this->input->post('user_role')
);
- // Pour les agents valideurs de iLink Santé
+ // Pour les agents valideurs de iLink Santé et iLink World
if($user_login['user_role'] == 2 && filter_var($user_login['user_email'], FILTER_VALIDATE_EMAIL)){
$sql = "SELECT nhd.* , n.name as network , n.id as network_id, cc.name as country, cc.currency_code
- FROM nh_validating_agents nhd INNER JOIN nh_networks_configs nhc ON nhc.id = nhd.nh_network_config_id
- INNER JOIN networks n ON n.id = nhc.network_id INNER JOIN countries_currencies cc ON cc.id = n.country_id WHERE nhd.email = ?";
+ FROM nh_validating_agents nhd INNER JOIN networks n ON n.id = nhd.network_id INNER JOIN countries_currencies cc ON cc.id = n.country_id WHERE nhd.email = ?";
$agent = $this->db->query($sql,[$user_login['user_email']]);
if($agent->num_rows()>0) {
$agent = $agent->first_row();
@@ -99,6 +98,8 @@
redirect('ValidatingDoctor');
}else if($agent->role == 'CONTROLLER'){
redirect('ControllerDoctor');
+ }else if($agent->role == 'OPENING_ACCOUNT_AGENT'){
+ redirect('OpeningAccountAgent');
}else{
redirect('ValidatingAgent');
}
diff --git a/application/controllers/pagination/CustomerAccountOpeningRequests.php b/application/controllers/pagination/CustomerAccountOpeningRequests.php
new file mode 100755
index 00000000..9761f35a
--- /dev/null
+++ b/application/controllers/pagination/CustomerAccountOpeningRequests.php
@@ -0,0 +1,55 @@
+load->model('pagination/CustomerAccountOpeningRequests_model', 'model');
+
+
+ }
+
+
+ function getLists()
+ {
+ $data = $row = array();
+
+ // Fetch member's records
+ $witData = $this->model->getRows($_POST);
+
+ $i = $_POST['start'];
+ $current_url = $_POST['currentURL'];
+ foreach ($witData as $row) {
+ $buttons = ' '.$this->lang->line('Voir plus...').'';
+
+
+ $data[] = array($row->unique_id , $row->customer_account_type_name, $row->lastname , $row->firstname, $row->phone_number,
+ mb_strtoupper($this->lang->line($row->status),'UTF-8'), $row->created_at ,$buttons);
+
+ }
+
+ $output = array(
+ "draw" => $_POST['draw'],
+ "recordsTotal" => $this->model->countAll($_POST),
+ "recordsFiltered" => $this->model->countFiltered($_POST),
+ "data" => $data,
+ );
+
+ // Output to JSON format
+ echo json_encode($output);
+ }
+
+}
diff --git a/application/helpers/functions_helper.php b/application/helpers/functions_helper.php
index 0be669fd..bb5e4a62 100644
--- a/application/helpers/functions_helper.php
+++ b/application/helpers/functions_helper.php
@@ -148,3 +148,61 @@ if (!function_exists('checkhashSSHA')) {
return base64_encode(sha1($password . $salt, true) . $salt);
}
}
+
+if (!function_exists('makeRequest')) {
+ function makeRequest($service , $method , $path , $request_body = []){
+ if(empty($_SESSION['email'])) {
+ return json_encode(['status' => 401]);
+ }
+
+ switch ($service){
+ case 'user-service':
+ $baseUrl = USER_SERVICE_URL;
+ $token = USER_SERVICE_TOKEN;
+ break;
+ case 'nano-service':
+ $baseUrl = NANO_SANTE_SERVICE_URL;
+ $token = NANO_SANTE_SERVICE_TOKEN;
+ break;
+ case 'wallet-service':
+ $baseUrl = WALLET_SERVICE_URL;
+ $token = WALLET_SERVICE_TOKEN;
+ break;
+ default:
+ $baseUrl = '';
+ $token = '';
+ }
+ $url = $baseUrl.$path;
+ if($method == 'GET'){
+ $data = http_build_query($_POST);
+ $ch = curl_init($url."?".$data);
+ }else{
+ $ch = curl_init($url);
+ }
+ curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
+ /* set the content type json */
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array(
+ 'Content-Type:application/json',
+ 'Authorization:'.$token,
+ 'X-localization:'. $_SESSION['site_lang'] == 'french' ? 'fr' : 'en'
+ ));
+ /* set return type json */
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+ $body = new \stdClass();
+ foreach ($request_body as $key => $value){
+ $body->{$key} = $value;
+ }
+ curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body));
+
+ /* execute request */
+ $result = curl_exec($ch);
+ /* close cURL resource */
+ curl_close($ch);
+
+ if ($result) {
+ return $result;
+ }else{
+ return json_encode(['status' => 500]);
+ }
+ }
+}
diff --git a/application/language/english/message_lang.php b/application/language/english/message_lang.php
index b4aa1f76..0c65ffbe 100755
--- a/application/language/english/message_lang.php
+++ b/application/language/english/message_lang.php
@@ -962,5 +962,91 @@ $lang['aggregator_updated'] = "Payment aggregator updated";
$lang['aggregator_deleted'] = "Payment aggregator deleted";
$lang['aggregator_created'] = "Payment aggregator created";
$lang['aggregator_activated'] = "Agrégateur de paiement activated" ;
-
+$lang['delete_customer_account_type'] = 'Delete a customer account type';
+$lang['no_customer_account_type'] = 'No customer account type';
+$lang['no_parent'] = 'No parent';
+$lang['documents_list'] = 'List of documents';
+$lang['add_document'] = "Add document";
+$lang['account_opening_agents'] = "Account opening agents";
+$lang['manage_account_opening_agents'] = "Manage account opening agents";
+$lang['account_opening_agent'] = "Account opening agent";
+$lang['add_account_opening_agent'] = "Add an account opening agent";
+$lang['account_opening_agent_updated'] = "Modified account opening agent";
+$lang['account_opening_agent_deleted'] = "Deleted account opening agent";
+$lang['account_opening_agent_created'] = "Customer account opening agent created";
+$lang['customer_account_opening_requests'] = "Customer account opening requests";
+$lang['accepted_opening_account_requests'] = "Accepted account opening requests";
+$lang['rejected_opening_account_requests'] = "rejected account opening requests";
+$lang['not_treated_opening_account_requests'] = "Account opening requests not processed";
+$lang['customer_opening_account_requests_history'] = "History of customer account opening requests";
+$lang['customer_account_opening_request'] = "Customer account opening request";
+$lang['personal_details'] = "Personal information";
+$lang['title'] = "Title";
+$lang['spouse_name'] = "Marital name";
+$lang['nationality'] = "Nationality";
+$lang['birth_country'] = "Country of birth";
+$lang['birth_city'] = "City of birth";
+$lang['birth_locality'] = "Exact place of birth";
+$lang['parent_informations'] = "Parent information";
+$lang['father_lastname'] = "Father's name";
+$lang['father_firstname'] = "Father's first name";
+$lang['mother_birth_lastname'] = "Mother's birth name";
+$lang['mother_firstname'] = "Mother's first name";
+$lang['marital_status'] = "Marital status";
+$lang['spouse_lastname'] = "Spouse's name";
+$lang['spouse_firstname'] = "Spouse's first name";
+$lang['employment_details'] = "Employer";
+$lang['profession'] = "Profession";
+$lang['business_activity'] = "Business sector";
+$lang['sub_sector_business_activity'] = "Sub-sector of business";
+$lang['tax_number'] = "Tax number";
+$lang['security_number'] = "Social security number";
+$lang['employee_number'] = "Employer's number";
+$lang['function'] = "Function";
+$lang['employee_name'] = "Employer's name";
+$lang['employee_address'] = "Employer's address";
+$lang['residential_details'] = "Residential status";
+$lang['residential_status'] = "Resident status";
+$lang['residential_country'] = "Country of residence";
+$lang['residence_permit_number'] = "Residence permit number";
+$lang['issued_date'] = "Date of issue";
+$lang['expiry_date'] ="Expiration date";
+$lang['address_justification_doc'] = "Proof of address";
+$lang['geographic_address'] = "Geographic address";
+$lang['po_box'] = "Postal address";
+$lang['person_to_contact_in_case_of_needs_name'] = "Person to contact if needed";
+$lang['identification'] = "Identity";
+$lang['identification_document_type'] = "Identification document type";
+$lang['identification_document_number'] = "Identification number";
+$lang['issuance_city'] = "City of issuance";
+$lang['issuance_country'] = "Issuing country";
+$lang['guardianship'] = "Guardianship";
+$lang['customer_under_guardianship'] = "Customer under guardianship? ";
+$lang['guardian_fullname'] = "Guardian's first and last name";
+$lang['recommendation'] = "Recommendation";
+$lang['how_did_you_know_company'] = "How did you hear about the company? ";
+$lang['introducer_fullname'] = "Introducer's first and last name";
+$lang['know_your_customer'] = "Knowledge of the customer";
+$lang['expected_service'] = "Expected service";
+$lang['income_sources_and_frequency'] = "Income frequency and transaction limit";
+$lang['business_partners'] = "Business relationship";
+$lang['bank_references'] = "Bank references";
+$lang['has_account_with_other_bank'] = "Do you have accounts with other banks?";
+$lang['more_information_account_opening_request'] = "More information for the account opening request";
+$lang['reject_subscription_account_opening_request'] = "Reject the account opening request";
+$lang['has_operative_other_bank_account'] = "If yes, is the account operational?";
+$lang['has_engagement_with_other_banks'] = "Do you have any engagements with other banks?";
+$lang['exposed_person'] = "Exposed person";
+$lang['is_politically_exposed_person'] = "Is the applicant a politically exposed person?";
+$lang['is_politically_exposed_person_in_service'] = "In service?";
+$lang['has_relationship_with_politically_exposed_person'] = "Is the applicant a politically exposed person relationship?";
+$lang['relationship_with_politically_exposed_person'] = "If yes, list their names and the nature of the relationship.";
+$lang['electronic_products'] = "Electronic products";
+$lang['email_alerts'] = "Email Alerts";
+$lang['e_statement_frequency'] = "Bank statement";
+$lang['e_package'] = "E Package";
+$lang['debit_card_type'] = "Debit card type";
+$lang['opening_account_request_accepted'] = "Customer account opening request accepted";
+$lang['opening_account_request_rejected'] = "The request to open an account has been rejected";
+$lang['opening_account_request_more_information'] = "The request to open an account has been rejected";
?>
diff --git a/application/language/french/message_lang.php b/application/language/french/message_lang.php
index 95452372..50662498 100755
--- a/application/language/french/message_lang.php
+++ b/application/language/french/message_lang.php
@@ -768,7 +768,6 @@ $lang['mail_body_validating_agent'] = "votre compte agent valideur a bien été
$lang['validating_agent_updated'] = "Agent valideur modifié";
$lang['validating_agent_deleted'] = "Agent valideur supprimé";
$lang['subscription_requests'] = "Demandes de souscriptions";
-$lang['subscription_requests'] = "Demandes de souscriptions";
$lang['accepted_subscription_requests'] = "Demandes de souscriptions acceptées";
$lang['rejected_subscription_requests'] = "Demandes de souscriptions rejetées";
$lang['not_treated_subscription_requests'] = "Demandes de souscriptions non traitées";
@@ -971,5 +970,91 @@ $lang['aggregator_updated'] = "Agrégateur de paiement mis à jour" ;
$lang['aggregator_deleted'] = "Agrégateur de paiement supprimé" ;
$lang['aggregator_created'] = "Agrégateur de paiement créé" ;
$lang['aggregator_activated'] = "Agrégateur de paiement activé" ;
-
+$lang['delete_customer_account_type'] = "Supprimer un type de compte client";
+$lang['no_customer_account_type'] = 'Aucun type de compte client';
+$lang['no_parent'] = "Aucun parent";
+$lang['documents_list'] = "Liste des documents";
+$lang['add_document'] = "Ajouter document";
+$lang['account_opening_agents'] = "Agents d'ouverture de compte";
+$lang['manage_account_opening_agents'] = "Gestion des agents d'ouverture de compte client";
+$lang['account_opening_agent'] = "Agent d'ouverture de compte";
+$lang['add_account_opening_agent'] = "Ajouter un agent d'ouverture de compte client";
+$lang['account_opening_agent_updated'] = "Agent d'ouverture de compte client modifié";
+$lang['account_opening_agent_deleted'] = "Agent d'ouverture de compte client supprimé";
+$lang['account_opening_agent_created'] = "Agent d'ouverture de compte client créé";
+$lang['customer_account_opening_requests'] = "Demandes d'ouverture de compte client";
+$lang['accepted_opening_account_requests'] = "Demandes d'ouverture de compte acceptées";
+$lang['rejected_opening_account_requests'] = "Demandes d'ouverture de compte rejetées";
+$lang['not_treated_opening_account_requests'] = "Demandes d'ouverture de compte non traitées";
+$lang['customer_opening_account_requests_history'] = "Historique des demandes d'ouverture de compte client";
+$lang['customer_account_opening_request'] = "Demande d'ouverture de compte client";
+$lang['personal_details'] = "Informations personnelles";
+$lang['title'] = "Titre";
+$lang['spouse_name'] = "Nom Marital";
+$lang['nationality'] = "Nationalité";
+$lang['birth_country'] = "Pays de naissance";
+$lang['birth_city'] = "Ville de naissance";
+$lang['birth_locality'] = "Lieu exact de naissance";
+$lang['parent_informations'] = "Informations des parents";
+$lang['father_lastname'] = "Nom du père";
+$lang['father_firstname'] = "Prénom du père";
+$lang['mother_birth_lastname'] = "Nom de naissance de la mère";
+$lang['mother_firstname'] = "Prénom de la mère";
+$lang['marital_status'] = "Situation matrimoniale";
+$lang['spouse_lastname'] = "Nom du conjoint";
+$lang['spouse_firstname'] = "Prénom du conjoint";
+$lang['employment_details'] = "Employeur";
+$lang['profession'] = "Profession";
+$lang['business_activity'] = "Secteur d'activité économique";
+$lang['sub_sector_business_activity'] = "Sous secteur d'activité";
+$lang['tax_number'] = "Numéro Fiscal";
+$lang['security_number'] = "Numéro de sécurité sociale";
+$lang['employee_number'] = "Numéro de l'employeur";
+$lang['function'] = "Fonction";
+$lang['employee_name'] = "Nom de l'employeur";
+$lang['employee_address'] = "Addresse de l'employeur";
+$lang['residential_details'] = "Status résidentiel";
+$lang['residential_status'] = "Status de résident";
+$lang['residential_country'] = "Pays de résidence";
+$lang['residence_permit_number'] = "Numéro de permis de séjour";
+$lang['issued_date'] ="Date de délivrance";
+$lang['expiry_date'] ="Date d'expiration";
+$lang['address_justification_doc'] = "Justificatif d'adresse";
+$lang['geographic_address'] = "Adresse géographique";
+$lang['po_box'] ="Adresse postale";
+$lang['person_to_contact_in_case_of_needs_name'] = "Personne à contacter en cas de besoin";
+$lang['identification'] = "Identité";
+$lang['identification_document_type'] = "Type de pièce d'identification";
+$lang['identification_document_number'] = "Numéro d'identification";
+$lang['issuance_city'] = "Ville d'émission";
+$lang['issuance_country'] = "Pays d'émission";
+$lang['guardianship'] = "Tutelle";
+$lang['customer_under_guardianship'] = "Client sous tutelle ? ";
+$lang['guardian_fullname'] = "Nom(s) et Prénom(s) du tuteur";
+$lang['recommendation'] = "Recommendation";
+$lang['how_did_you_know_company'] = "Comment avez vous connu l'entreprise ? ";
+$lang['introducer_fullname'] = "Nom(s) et Prénom(s) de l'introducteur";
+$lang['know_your_customer'] = "Connaissance du client";
+$lang['expected_service'] = "Service attendu";
+$lang['income_sources_and_frequency'] = "Fréquence de revenus et Plafond des transactions";
+$lang['business_partners'] = "Relation d'affaires";
+$lang['bank_references'] = "Référence bancaires";
+$lang['has_account_with_other_bank'] = "Avez vous des comptes avec d'autres banques ?";
+$lang['more_information_account_opening_request'] = "Complément d'informations pour la demande d'ouverture de compte";
+$lang['reject_subscription_account_opening_request'] = "Rejeter la demande d'ouverture de compte";
+$lang['has_operative_other_bank_account'] = "Si oui, le compte est-il opérationnel ?";
+$lang['has_engagement_with_other_banks'] = "Avez vous des engagements avec d'autres banques ?";
+$lang['exposed_person'] = "Personne exposée";
+$lang['is_politically_exposed_person'] = "Le demandeur est-il une personne politiquement exposée ?";
+$lang['is_politically_exposed_person_in_service'] = "En service ?";
+$lang['has_relationship_with_politically_exposed_person'] = "Le demandeur est-il une relation avec des personnes politiquement exposées ?";
+$lang['relationship_with_politically_exposed_person'] = "Si oui, indiquez leurs noms et la nature de la relation";
+$lang['electronic_products'] = "Produits électroniques";
+$lang['email_alerts'] = "Alertes Email";
+$lang['e_statement_frequency'] = "Relevé bancaire";
+$lang['e_package'] = "E Package";
+$lang['debit_card_type'] = "Type de carte de débit";
+$lang['opening_account_request_accepted'] = "La demande d'ouverture de compte client été acceptée";
+$lang['opening_account_request_rejected'] = "La demande d'ouverture de compte client été rejetée";
+$lang['opening_account_request_more_information'] = "La demande d'ouverture de compte client en attente de complement d'informations";
?>
diff --git a/application/models/Opening_account_model.php b/application/models/Opening_account_model.php
new file mode 100755
index 00000000..35016bc5
--- /dev/null
+++ b/application/models/Opening_account_model.php
@@ -0,0 +1,32 @@
+db->from('customer_account_opening_requests')->where('status',$state);
+ if(!empty($validating_agent_id)){
+ $query = $query->where('validating_agent_id', $validating_agent_id);
+ }
+
+ if(!empty($network_id)){
+ $query = $query->where('network_id', $network_id);
+ }
+ return $query->count_all_results();
+ }
+
+ public function getInfosOpeningAccountRequestId($requestId){
+ return $this->db->get_where('infos_customer_account_opening_requests',['id' => $requestId])->first_row();
+ }
+
+ public function getOpeningAccountRequestDocuments($requestId){
+ return $this->db->get_where('customer_account_request_documents',['request_id' => $requestId])->result();
+ }
+}
diff --git a/application/models/pagination/CustomerAccountOpeningRequests_model.php b/application/models/pagination/CustomerAccountOpeningRequests_model.php
new file mode 100644
index 00000000..3a8e433c
--- /dev/null
+++ b/application/models/pagination/CustomerAccountOpeningRequests_model.php
@@ -0,0 +1,109 @@
+table = 'infos_customer_account_opening_requests';
+ // Set orderable column fields
+ $this->column_order = array('unique_id','customer_account_type_name', 'lastname','firstname', 'phone_number', 'status', 'created_at', null);
+ // Set searchable column fields
+ $this->column_search = array('unique_id','customer_account_type_name','lastname','firstname', 'phone_number', 'status', 'created_at');
+ // Set default order
+ $this->order = array('created_at' => 'desc');
+ }
+
+ /*
+ * Fetch members data from the database
+ * @param $_POST filter data based on the posted parameters
+ */
+ public function getRows($postData)
+ {
+ $this->_get_datatables_query($postData);
+ if ($postData['length'] != -1) {
+ $this->db->limit($postData['length'], $postData['start']);
+ }
+ $query = $this->db->get();
+ return $query->result();
+ }
+
+ /*
+ * Count all records
+ */
+ public function countAll($postData)
+ {
+ $this->db->from($this->table);
+ if(!empty($postData['id_network'])){
+ $this->db->where('network_id', $postData['id_network']);
+ }
+
+ if(!empty($postData['validating_agent_id'])){
+ $this->db->where('validating_agent_id', $postData['validating_agent_id']);
+ }
+ return $this->db->count_all_results();
+ }
+
+ /*
+ * Count records based on the filter params
+ * @param $_POST filter data based on the posted parameters
+ */
+ public function countFiltered($postData)
+ {
+ $this->_get_datatables_query($postData);
+ $query = $this->db->get();
+ return $query->num_rows();
+ }
+
+ /*
+ * Perform the SQL queries needed for an server-side processing requested
+ * @param $_POST filter data based on the posted parameters
+ */
+ private function _get_datatables_query($postData)
+ {
+
+ $this->db->from($this->table);
+ if(!empty($postData['id_network'])){
+ $this->db->where('network_id', $postData['id_network']);
+ }
+
+ if(!empty($postData['validating_agent_id'])){
+ $this->db->where('validating_agent_id', $postData['validating_agent_id']);
+ }
+ if (strlen($postData['startDate']) > 0 && strlen($postData['endDate']) > 0) {
+ $this->db->where('created_at >=', date('Y-m-d', strtotime($postData['startDate'])));
+ $this->db->where('created_at <', date('Y-m-d', strtotime($postData['endDate']. "+1 day")));
+ }
+
+ $i = 0;
+ // loop searchable columns
+ foreach ($this->column_search as $item) {
+ // if datatable send POST for search
+ if ($postData['search']['value']) {
+ // first loop
+ if ($i === 0) {
+ // open bracket
+ $this->db->group_start();
+ $this->db->like($item, $postData['search']['value']);
+ } else {
+ $this->db->or_like($item, $postData['search']['value']);
+ }
+
+ // last loop
+ if (count($this->column_search) - 1 == $i) {
+ // close bracket
+ $this->db->group_end();
+ }
+ }
+ $i++;
+ }
+
+ if (isset($postData['order'])) {
+ $this->db->order_by($this->column_order[$postData['order']['0']['column']], $postData['order']['0']['dir']);
+ } else if (isset($this->order)) {
+ $order = $this->order;
+ $this->db->order_by(key($order), $order[key($order)]);
+ }
+ }
+}
diff --git a/application/views/account_opening_agent/dashboard.php b/application/views/account_opening_agent/dashboard.php
new file mode 100755
index 00000000..df953899
--- /dev/null
+++ b/application/views/account_opening_agent/dashboard.php
@@ -0,0 +1,272 @@
+
+
+
+
+
+
+
+ db->query("SELECT id FROM customer_account_opening_requests
+ WHERE MONTH(created_at) = '".$months[$i-1]."' AND YEAR(created_at) = '".$years[$i-1]."'
+ AND network_id ='".$this->session->userdata('network_id')."'");
+ array_push($insuranceSubcriptions, $monthQuery->num_rows());
+ }
+
+ $careRequests = [];
+
+// $date = date("Y");
+//
+// $demandes_data[] = '';
+// $demandes_data =array();
+// for ($i = 1; $i <= 12; $i++) {
+// $demandes_query_mounth = $this->db->query("SELECT demande_id FROM info_demandeCredits
+// WHERE MONTH(dateAjout) = '".$months[$i-1]."' AND YEAR(dateAjout) = ".$years[$i-1]."
+// AND codeParrain='".$this->session->userdata('member_code')."'"
+// );
+// $demandes_data[] = $demandes_query_mounth->num_rows();
+// }
+//
+// $demandes_query = $listdem;
+//
+// if($demandes_query!=false){
+// $demandes=$demandes_query->num_rows();
+// // Count networks for simple users
+// $array_simple = array();
+// $num = 0;
+// if ($demandes > 0) {
+// foreach($demandes_query->result() as $row) {
+// $num++;
+// $array_simple[] = $row->codeMembre;
+// }
+//
+// $vals_simple = array_count_values($array_simple);
+// //echo 'No. of NON Duplicate Items: '.count($vals_simple).'
';
+// //print_r($vals_simple);
+// $pieChart2 = array();
+// foreach(array_keys($vals_simple) as $paramName2) {
+// $color2 = dechex(rand(0x000000, 0xFFFFFF));
+// $trash2 = array("value" => $vals_simple[$paramName2],
+// "color" => "#".$color2,
+// "highlight" => "#".$color2,
+// "label" => $paramName2);
+//
+// $pieChart2[]= $trash2;
+//
+// }
+// }
+// }else{
+ $pieChart2 = array();
+// }
+
+ /**
+ ** Geolocated User Treatment
+ **/
+// $users_geolocated_query = $list_geolocated_users;
+// // Geolocated Users by month replace 2016 by NOW()
+// $users_geolocated_data[] = '';
+// $users_geolocated_data =array();
+// for ($i = 1; $i <= 12; $i++) {
+// $users_geolocated_query_january = $this->db->query("SELECT agent_id FROM super_infos
+// WHERE MONTH(date_created) = '".$months[$i-1]."' AND YEAR(date_created) = ".$years[$i-1]."
+// AND category='geolocated' AND code_parrain='".$this->session->userdata('member_code')."'");
+// $users_geolocated_data[] = $users_geolocated_query_january->num_rows();
+// }
+//
+// if($users_geolocated_query!=false){
+//
+// $users_geolocated=$users_geolocated_query->num_rows();
+// //$users_geolocated_query = json_encode($users_geolocated_query->result());
+// // Counts network for geolocated users
+// $array_geolocated = array();
+// $num = 0;
+// if ($users_geolocated > 0) {
+// foreach($users_geolocated_query->result() as $row) {
+// $num++;
+// $array_geolocated[] = date("M", strtotime($row->date_created));
+// }
+// $vals_geolocated = array_count_values($array_geolocated);
+// //echo 'No. of NON Duplicate Items: '.count($vals_geolocated).'
';
+// //print_r($vals_geolocated);
+// $pieChart = array();
+// foreach(array_keys($vals_geolocated) as $paramName) {
+// $color = dechex(rand(0x000000, 0xFFFFFF));
+// $trash = array("value" => $vals_geolocated[$paramName],
+// "color" => "#".$color,
+// "highlight" => "#".$color,
+// "label" => $paramName);
+//
+// $pieChart[]= $trash;
+// }
+// }
+// }else{
+// $pieChart = array();
+// }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
= $count_accepted ?? 0;?>
+
+
= $this->lang->line('accepted_opening_account_requests'); ?>
+
+
+
+
+
+
+
+
+
+
+
+
= $count_under_validation ?? 0;?>
+
+
= $this->lang->line('not_treated_opening_account_requests'); ?>
+
+
+
+
+
+
+
+
+
+
+
+
= $count_rejected ?? 0;?>
+
+
= $this->lang->line("rejected_opening_account_requests"); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+lang->line('subscription_requests'); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/application/views/account_opening_agent/header.php b/application/views/account_opening_agent/header.php
new file mode 100755
index 00000000..88e29755
--- /dev/null
+++ b/application/views/account_opening_agent/header.php
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+ iLink | = $this->lang->line('validating_agent');?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/application/views/account_opening_agent/infos_opening_account_request.php b/application/views/account_opening_agent/infos_opening_account_request.php
new file mode 100755
index 00000000..41231b2f
--- /dev/null
+++ b/application/views/account_opening_agent/infos_opening_account_request.php
@@ -0,0 +1,1072 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
=$request->customer_account_type_name?>
+
Type
+
+
+
+
+
+
+
+
+
+
+
= $this->lang->line($request->status)?>
+
= $this->lang->line('Statut') ?>
+
+
+
+
+
+
+
+ status, ['REJECTED','MORE_INFORMATION'])) { ?>
+
+
+
+
= $request->reject_reason ?>
+
= $this->lang->line('reject_reason') ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('title'); ?> |
+ = $request->title; ?> |
+
+
+ = $this->lang->line('Nom'); ?> |
+ = $request->lastname; ?> |
+
+
+ = $this->lang->line('Prénom'); ?> |
+ = $request->firstname; ?> |
+
+
+ = $this->lang->line('spouse_name'); ?> |
+ = $request->spouse_name; ?> |
+
+
+ = $this->lang->line('nationality'); ?> |
+ = $request->nationality; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('birth_date'); ?> |
+ = $request->birth_date; ?> |
+
+
+ = $this->lang->line('birth_city'); ?> |
+ = $request->birth_city; ?> |
+
+
+ = $this->lang->line('birth_country') ?> |
+ = $request->birth_country ?> |
+
+
+ = $this->lang->line('birth_locality'); ?> |
+ = $request->birth_locality ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('father_lastname'); ?> |
+ = $request->father_lastname; ?> |
+
+
+ = $this->lang->line('father_firstname'); ?> |
+ = $request->father_firstname; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('mother_birth_lastname'); ?> |
+ = $request->mother_birth_lastname; ?> |
+
+
+ = $this->lang->line('mother_firstname'); ?> |
+ = $request->mother_firstname; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('marital_status'); ?> |
+ = $request->marital_status; ?> |
+
+
+ = $this->lang->line('spouse_lastname'); ?> |
+ = $request->spouse_lastname; ?> |
+
+
+ = $this->lang->line('spouse_firstname'); ?> |
+ = $request->spouse_firstname; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('profession'); ?> |
+ = $request->profession; ?> |
+
+
+ = $this->lang->line('business_activity'); ?> |
+ = $request->business_activity; ?> |
+
+
+ = $this->lang->line('sub_sector_business_activity'); ?> |
+ = $request->sub_sector_business_activity; ?> |
+
+
+ = $this->lang->line('tax_number'); ?> |
+ = $request->tax_number; ?> |
+
+
+ = $this->lang->line('security_number'); ?> |
+ = $request->security_number; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('employee_number'); ?> |
+ = $request->employee_number; ?> |
+
+
+ = $this->lang->line('function'); ?> |
+ = $request->function; ?> |
+
+
+ = $this->lang->line('employee_name') ?> |
+ = $request->employee_name ?> |
+
+
+ = $this->lang->line('employee_address'); ?> |
+ = $request->employee_address ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('residential_status'); ?> |
+ = $request->residential_status; ?> |
+
+
+ = $this->lang->line('residential_country'); ?> |
+ = $request->residential_country; ?> |
+
+
+ = $this->lang->line('residence_permit_number'); ?> |
+ = $request->residence_permit_number; ?> |
+
+
+ = $this->lang->line('issued_date'); ?> |
+ = $request->residence_permit_issued_date; ?> |
+
+
+ = $this->lang->line('expiry_date'); ?> |
+ = $request->residence_permit_expiry_date; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('address_justification_doc'); ?> |
+ = $request->address_justification_doc; ?> |
+
+
+ = $this->lang->line('geographic_address'); ?> |
+ = $request->address; ?> |
+
+
+ = $this->lang->line('po_box'); ?> |
+ = $request->po_box; ?> |
+
+
+ = $this->lang->line('phone_number'); ?> |
+ = $request->phone_number; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('Email').' 1'; ?> |
+ = $request->email_1; ?> |
+
+
+ = $this->lang->line('Email').' 2'; ?> |
+ = $request->email_2; ?> |
+
+
+ = $this->lang->line('person_to_contact_in_case_of_needs_name') ?> |
+ = $request->person_to_contact_in_case_of_needs_name ?> |
+
+
+ = $this->lang->line('phone_number'); ?> |
+ = $request->person_to_contact_in_case_of_needs_phone_number ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('identification_document_type'); ?> |
+ = $request->identification_document_type; ?> |
+
+
+ = $this->lang->line('identification_document_number'); ?> |
+ = $request->identification_document_number; ?> |
+
+
+ = $this->lang->line('issued_date'); ?> |
+ = $request->identification_document_issued_date; ?> |
+
+
+ = $this->lang->line('expiry_date'); ?> |
+ = $request->identification_document_expiry_date; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('issuance_city'); ?> |
+ = $request->identification_document_issuance_city; ?> |
+
+
+ = $this->lang->line('issuance_country'); ?> |
+ = $request->identification_document_issuance_country; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('customer_under_guardianship'); ?> |
+ = $this->lang->line( $request->customer_under_guardianship ? 'Oui' : 'Non'); ?> |
+
+
+ = $this->lang->line('guardian_fullname'); ?> |
+ = $request->guardian_fullname; ?> |
+
+
+ = $this->lang->line('phone_number'); ?> |
+ = $request->guardian_fullname_phone_number; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('how_did_you_know_company'); ?> |
+ = $request->how_did_you_know_company ; ?> |
+
+
+ = $this->lang->line('introducer_fullname'); ?> |
+ = $request->introducer_fullname; ?> |
+
+
+ = $this->lang->line('Adresse'); ?> |
+ = $request->introducer_address; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('expected_service'); ?> |
+ = $request->expected_service; ?> |
+
+
+ = $this->lang->line('income_sources_and_frequency'); ?> |
+ = $request->income_sources_and_frequency; ?> |
+
+
+ = $this->lang->line('business_partners'); ?> |
+ = $request->business_partners; ?> |
+
+
+ = $this->lang->line('bank_references'); ?> |
+ = $request->bank_references; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('has_account_with_other_bank'); ?> |
+ = $this->lang->line($request->has_account_with_other_bank ? 'Oui' : 'Non'); ?> |
+
+
+ = $this->lang->line('has_operative_other_bank_account'); ?> |
+ = $this->lang->line($request->has_operative_other_bank_account ? 'Oui' : 'Non'); ?> |
+
+
+ = $this->lang->line('has_engagement_with_other_banks'); ?> |
+ = $this->lang->line($request->has_engagement_with_other_banks ? 'Oui' : 'Non'); ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('is_politically_exposed_person'); ?> |
+ = $this->lang->line($request->is_politically_exposed_person ? 'Oui' : 'Non'); ?> |
+
+
+ = $this->lang->line('is_politically_exposed_person_in_service'); ?> |
+ = $this->lang->line($request->is_politically_exposed_person_in_service ? 'Oui' : 'Non'); ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('has_relationship_with_politically_exposed_person'); ?> |
+ = $this->lang->line($request->has_relationship_with_politically_exposed_person ? 'Oui' : 'Non'); ?> |
+
+
+ = $this->lang->line('relationship_with_politically_exposed_person'); ?> |
+ = $request->relationship_with_politically_exposed_person; ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('email_alerts'); ?> |
+ = $this->lang->line($request->email_alerts ? 'Oui' : 'Non'); ?> |
+
+
+ = $this->lang->line('e_statement_frequency'); ?> |
+ = $request->e_statement_frequency ?> |
+
+
+ = $this->lang->line('e_package'); ?> |
+ = $this->lang->line($request->e_package ? 'Oui' : 'Non'); ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+ = $this->lang->line('debit_card_type'); ?> |
+ = $request->debit_card_type ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # |
+ = $this->lang->line('Nom') ?> |
+ Description |
+ Actions |
+
+
+
+ $document) {
+ ?>
+
+ = $i + 1 ?> |
+ = $document->name ?> |
+ = $document->description ?> |
+
+
+ = $this->lang->line('display') ?>
+
+ |
+
+
+
+
+
+
+
+
+ load->view('include/loader') ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/application/views/account_opening_agent/opening_account_requests.php b/application/views/account_opening_agent/opening_account_requests.php
new file mode 100755
index 00000000..63f64151
--- /dev/null
+++ b/application/views/account_opening_agent/opening_account_requests.php
@@ -0,0 +1,203 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ = $this->lang->line('Période') ?>
+
+
+
+
+ Format : = $this->session->userdata('site_lang') === 'french' ? 'Jour - Mois - Année ' : 'Year - Month - Day' ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ =$this->lang->line('request_id')?> |
+ Type |
+ = $this->lang->line('Nom') ?> |
+ = $this->lang->line('Nom') ?> |
+ = $this->lang->line('Contact') ?> |
+ = $this->lang->line('state') ?> |
+ Date |
+ Action |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/application/views/config_wallet_ilink_hyp/customers_accounts.php b/application/views/config_wallet_ilink_hyp/customers_accounts.php
new file mode 100755
index 00000000..04a1c184
--- /dev/null
+++ b/application/views/config_wallet_ilink_hyp/customers_accounts.php
@@ -0,0 +1,424 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # |
+ = $this->lang->line('Nom'); ?> |
+ Description |
+ Parent |
+ = $this->lang->line('opening_amount'); ?> |
+ Action |
+
+
+
+ $row) { ?>
+
+ =$i+1?> |
+ =$row->name?> |
+ =$row->description?> |
+ =$row->parent?> |
+ = empty($row->opening_amount) ? '' : Money::of(round($row->opening_amount, 2), $currency_code ?? 'XAF', $context)->formatTo('fr_FR')?> |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+ load->view('include/delete_modal',['title' => $this->lang->line('delete_customer_account_type')]) ?>
+ load->view('include/loader') ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/application/views/gestion_wallet_ilink_hyp.php b/application/views/gestion_wallet_ilink_hyp.php
index 2a08e63a..7ecaa111 100755
--- a/application/views/gestion_wallet_ilink_hyp.php
+++ b/application/views/gestion_wallet_ilink_hyp.php
@@ -254,23 +254,29 @@ $context = new \Brick\Money\Context\AutoContext();
-
+
-
+
-
diff --git a/application/views/header_hyp.php b/application/views/header_hyp.php
index eea04df3..0f5873f5 100755
--- a/application/views/header_hyp.php
+++ b/application/views/header_hyp.php
@@ -211,6 +211,14 @@
Walletlang->line('Game'); ?>
+
">
+
+
+ = $this->lang->line('account_opening_agents'); ?>
+
+
first_row()->type == 'ilink_sante') { ?>
;
+ var networkId = "=$network_id ?>"
var selectedId = null
$(document).on("click", ".edit", function () {
@@ -231,6 +240,9 @@
case 'CONTROLLER':
$title4 ='controller_doctor_updated';
break;
+ case 'OPENING_ACCOUNT_AGENT':
+ $title4 ='account_opening_agent_updated';
+ break;
default:
$title4 = 'validating_agent_updated';
}
@@ -279,6 +291,9 @@
case 'CONTROLLER':
$title5 ='controller_doctor_created';
break;
+ case 'OPENING_ACCOUNT_AGENT':
+ $title5 ='account_opening_agent_created';
+ break;
default:
$title5 = 'validating_agent_created';
}
@@ -289,7 +304,7 @@
url: '= base_url('NanoHealthController/createValidatingAgent')?>',
type: 'post',
data: {
- nh_network_config_id : idConfig,
+ network_id : networkId,
lastname: $("input[name=lastname]",this).val(),
firstname: $("input[name=firstname]",this).val(),
email: $("input[name=email]",this).val(),
@@ -328,6 +343,9 @@
case 'CONTROLLER':
$title6 ='controller_doctor_deleted';
break;
+ case 'OPENING_ACCOUNT_AGENT':
+ $title6 ='account_opening_agent_deleted';
+ break;
default:
$title6 = 'validating_agent_deleted';
}