From 41099a705cc497c23c8bf5c5b8194363f508b0c8 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 31 Mar 2026 17:50:09 +0000 Subject: [PATCH] sze --- Vue/Fichebeneficiaire/index.php | 133 ++++++++++++++------------------ 1 file changed, 57 insertions(+), 76 deletions(-) diff --git a/Vue/Fichebeneficiaire/index.php b/Vue/Fichebeneficiaire/index.php index 6acf743..c96b911 100755 --- a/Vue/Fichebeneficiaire/index.php +++ b/Vue/Fichebeneficiaire/index.php @@ -333,82 +333,67 @@ -
+ nettoyer($police['plafondOut']) ?: 0; + $consommationGlobaleFamilleOut = $this->nettoyer($police['consommationOut']) ?: 0; + $soldeConsommationOut = $this->nettoyer($police['soldeConsommationOut']) ?: 0; + $niveauGlobalConsoFamilleOut = ($plafondGlobalFamilleOut > 0) ? ($consommationGlobaleFamilleOut * 100) / $plafondGlobalFamilleOut : 0; + + $plafondGlobalFamilleInp = $this->nettoyer($police['plafondInp']) ?: 0; + $consommationGlobaleFamilleInp = $this->nettoyer($police['consommationInp']) ?: 0; + $soldeConsommationInp = $this->nettoyer($police['soldeConsommationInp']) ?: 0; + $niveauGlobalConsoFamilleInp = ($plafondGlobalFamilleInp > 0) ? ($consommationGlobaleFamilleInp * 100) / $plafondGlobalFamilleInp : 0; + + // --- 2. CALCULS INDIVIDUELS (Bénéficiaire) --- + $consommationGlobaleBenefOut = $this->nettoyer($college['consommation_individuOut']) ?: 0; + $niveauGlobalConsoBenefOut = ($plafondGlobalFamilleOut > 0) ? ($consommationGlobaleBenefOut * 100) / $plafondGlobalFamilleOut : 0; + + $consommationGlobaleBenefInp = $this->nettoyer($college['consommation_individuInp']) ?: 0; + $niveauGlobalConsoBenefInp = ($plafondGlobalFamilleInp > 0) ? ($consommationGlobaleBenefInp * 100) / $plafondGlobalFamilleInp : 0; + ?> + +
-
- - -
+
-
- [ - 'label' => _("Soins Ambulatoires (OUTPATIENT)"), - 'conso' => $this->nettoyer($police['consommationOut']), - 'plafond' => $this->nettoyer($police['plafondOut']), - 'solde' => $this->nettoyer($police['soldeConsommationOut']), - 'percent' => ($police['plafondOut'] > 0) ? ($police['consommationOut'] * 100) / $police['plafondOut'] : 0 - ], - 'INP' => [ - 'label' => _("Hospitalisation (INPATIENT)"), - 'conso' => $this->nettoyer($police['consommationInp']), - 'plafond' => $this->nettoyer($police['plafondInp']), - 'solde' => $this->nettoyer($police['soldeConsommationInp']), - 'percent' => ($police['plafondInp'] > 0) ? ($police['consommationInp'] * 100) / $police['plafondInp'] : 0 - ] - ]; - - foreach ($types as $key => $data): - $colorClass = ($data['percent'] >= 90) ? 'danger' : (($data['percent'] >= 70) ? 'warning' : 'success'); - ?> -
-
-
- % -
- -
-
-
- -
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
- - -
- -
- +
+ = 90) ? 'danger' : (($niveauGlobalConsoFamilleOut >= 70) ? 'warning' : 'success'); ?> +
+
+ %
- +
+
+
+
+
+
+
+
+
+ +
+ = 90) ? 'danger' : (($niveauGlobalConsoFamilleInp >= 70) ? 'warning' : 'success'); ?> +
+
+ % +
+
+
+
+
+
+
+
+
+
@@ -416,9 +401,7 @@
-
- -
+
%">
- : % + + : % +
- -
- - -
+