diff --git a/application/controllers/Hyperviseur_dash.php b/application/controllers/Hyperviseur_dash.php index f261c3ea..0005f7aa 100755 --- a/application/controllers/Hyperviseur_dash.php +++ b/application/controllers/Hyperviseur_dash.php @@ -407,6 +407,7 @@ class Hyperviseur_dash extends CI_Controller $data['beneficiaries'] = $this->nano_health_model->getInsuranceBeneficiaries($data['insurance']->id ?? null); $data['user'] = $this->db->get_where('user_infos',['user_id' => $data['insurance']->user_id ?? null])->first_row(); $data['transactions'] = $this->nano_health_model->getInsurancePaymentTransactions($this->input->get('id')); + $data['deletion_of_beneficiaries'] = $this->nano_health_model->getBeneficiariesDeletionHistory($data['insurance']->id ?? null); $this->load->view('header_hyp', $data); $this->load->view('nano_health/hyper/infos_insurance'); diff --git a/application/language/english/message_lang.php b/application/language/english/message_lang.php index bb9aa267..e0557a88 100755 --- a/application/language/english/message_lang.php +++ b/application/language/english/message_lang.php @@ -862,4 +862,7 @@ $lang['request_id'] = "Request ID"; $lang['export_request_list'] = "Export request list"; $lang['USED'] = "Used"; $lang['used_care_requests'] = "Used care requests"; +$lang['beneficiaries_deletion_history'] = "Deletion history of beneficiaries"; +$lang['deletion_date'] = "Date of deletion"; +$lang['STOP_INSURANCE'] = "Stopping insurance"; ?> diff --git a/application/language/french/message_lang.php b/application/language/french/message_lang.php index 912e286e..748548dd 100755 --- a/application/language/french/message_lang.php +++ b/application/language/french/message_lang.php @@ -873,4 +873,7 @@ $lang['request_id'] = "ID de la demande"; $lang['export_request_list'] = "Exporter la liste des demandes"; $lang['USED'] = "Utilisée"; $lang['used_care_requests'] = "Demandes de soins utilisées"; +$lang['beneficiaries_deletion_history'] = "Historique de suppression des ayants droit"; +$lang['deletion_date'] = "Date de suppression"; +$lang['STOP_INSURANCE'] = "Arrêt de l'assurance" ?> diff --git a/application/models/Nano_health_model.php b/application/models/Nano_health_model.php index 48c601b8..2653d5c8 100644 --- a/application/models/Nano_health_model.php +++ b/application/models/Nano_health_model.php @@ -150,4 +150,11 @@ class Nano_health_model extends CI_Model } return $query->count_all_results(); } + + public function getBeneficiariesDeletionHistory($insuranceId){ + return $this->db->select('b.* , i.deleted_at') + ->from('nh_having_rights b')->join('nh_insurances_having_rights i', 'b.id = i.having_right_id') + ->where('i.deleted_at IS NOT NULL') + ->where('i.insurance_id',$insuranceId)->order_by('i.deleted_at','desc')->get(); + } } diff --git a/application/views/nano_health/hyper/infos_insurance.php b/application/views/nano_health/hyper/infos_insurance.php index e48e1715..84664390 100755 --- a/application/views/nano_health/hyper/infos_insurance.php +++ b/application/views/nano_health/hyper/infos_insurance.php @@ -163,7 +163,7 @@
# | @@ -322,6 +322,134 @@ +
---|
# | += $this->lang->line('Nom'); ?> | += $this->lang->line('gender'); ?> | += $this->lang->line('birth_date'); ?> | +Affiliation | += $this->lang->line('bonus_amount'); ?> | += $this->lang->line('deletion_date'); ?> | +Images | +
---|---|---|---|---|---|---|---|
" . ($i+1) . " | +" . $row->lastname.' '.$row->firstname . " | +" . $row->gender . " | +" . $row->birthdate . " | +".$this->lang->line($row->affiliation)." | +".$bonus_amount." | +" . $row->deleted_at. " | "; + ?> + ++ + | +