diff --git a/Modele/Beneficiaire.php b/Modele/Beneficiaire.php
index 697222b..cd23688 100755
--- a/Modele/Beneficiaire.php
+++ b/Modele/Beneficiaire.php
@@ -379,7 +379,6 @@ class Beneficiaire extends Modele {
public function getBeneficiaireId($idBeneficiaire)
{
-
$sql = 'call sp_get_beneficiaire_id(?);';
$beneficiaire = $this->executerRequete($sql, array($idBeneficiaire));
return $beneficiaire->fetch(PDO::FETCH_ASSOC);
diff --git a/Vue/Fichebeneficiaire/index.php b/Vue/Fichebeneficiaire/index.php
index 18b6544..efa0761 100755
--- a/Vue/Fichebeneficiaire/index.php
+++ b/Vue/Fichebeneficiaire/index.php
@@ -317,13 +317,23 @@
nettoyer($police['plafond']);
- $consommationGlobaleFamille = $this->nettoyer($police['consommation']);
- $niveauGlobalConsoFamille = ($consommationGlobaleFamille*100)/$plafondGlobalFamille;
- $soldeConsommation = $this->nettoyer($police['soldeConsommation']);
+/*
+ plafondOut
+ consommationOut
+ soldeConsommationOut
+ consommation_individuOut
+ plafondInp
+ consommationInp
+ soldeConsommationInp
+ consommation_individuInp
+*/
+ $plafondGlobalFamilleOut = $this->nettoyer($police['plafondOut']);
+ $consommationGlobaleFamilleOut = $this->nettoyer($police['consommationOut']);
+ $niveauGlobalConsoFamilleOut = ($consommationGlobaleFamilleOut*100)/$plafondGlobalFamilleOut;
+ $soldeConsommationOut = $this->nettoyer($police['soldeConsommationOut']);
- $consommationGlobaleBenef = $this->nettoyer($college['consommation_individu']);
- $niveauGlobalConsoBenef = ($consommationGlobaleBenef*100)/$plafondGlobalFamille;
+ $consommationGlobaleBenefOut = $this->nettoyer($college['consommation_individuOut']);
+ $niveauGlobalConsoBenefOut = ($consommationGlobaleBenefOut*100)/$plafondGlobalFamilleOut;
?>
@@ -331,32 +341,32 @@
= _("Dépense") ?>
-
= format_N($consommationGlobaleFamille) ?>
+ = format_N($consommationGlobaleFamilleOut) ?>
= _("Plafond") ?>
-
= format_N($plafondGlobalFamille) ?>
+ = format_N($plafondGlobalFamilleOut) ?>
= _("Solde") ?>
-
= format_N($soldeConsommation) ?>
+ = format_N($soldeConsommationOut) ?>
-
- = number_format($niveauGlobalConsoFamille, 1) ?>%
+
+ = number_format($niveauGlobalConsoFamilleOut, 1) ?>%
-
+
= _("Plafond familial atteint!") ?>
@@ -389,14 +399,6 @@
- nettoyer($college['plafond']);
- $consommationGlobaleBenef = $this->nettoyer($college['consommation_individu']);
- $niveauGlobalConsoBenef = ($consommationGlobaleBenef/$plafondGlobalBeneficiaire)*100;
- */
- ?>
-
@@ -404,13 +406,12 @@
= format_N($consommationGlobaleBenef) ?>
-
-
- = number_format($niveauGlobalConsoBenef, 1) ?>%
+
+ = number_format($niveauGlobalConsoBenefOut, 1) ?>%