Génération des données des graphiques actif, passif et sig pour les 5 années
This commit is contained in:
parent
7e6efa1a79
commit
1df9aa9ad8
@ -117,7 +117,7 @@ function ratiosBilans($bilansInfos, $ratiosEntrep, $ratiosEntrepEvol, $ratiosInf
|
||||
}
|
||||
$index++;
|
||||
}
|
||||
//Tri des tableaux par ordre décroissant suivant la date de cloture
|
||||
|
||||
if(count($bilansInfos)>0)
|
||||
{
|
||||
//Transformation du tableau sous forme clé => valeur
|
||||
@ -141,47 +141,50 @@ function ratiosBilans($bilansInfos, $ratiosEntrep, $ratiosEntrepEvol, $ratiosInf
|
||||
$ratiosEntrep[$i] = $tempRatiosEntrep[$row['cle']];
|
||||
$ratiosEntrepEvol[$i] = $tempRatiosEntrepEvol[$row['cle']];
|
||||
$ratiosSecteur[$i] = $tempRatiosSecteur[$row['cle']];
|
||||
|
||||
//Génération données graphique actif
|
||||
$dataActif[$i] = array(
|
||||
graphPercent($i,'r51','r22'),
|
||||
graphPercent($i,'r52','r22'),
|
||||
graphPercent($i,'r53','r22'),
|
||||
graphPercent($i,'r60','r22'),
|
||||
graphPercent($i,'r61','r22'),
|
||||
graphPercent($i,'r62','r22'),
|
||||
graphPercent($i,'r63','r22'),
|
||||
);
|
||||
//Génération données graphique passif
|
||||
$dataPassif[$i] = array(
|
||||
graphPercent($i,'r70','r22'),
|
||||
graphPercent($i,'r71','r22'),
|
||||
graphPercent($i,'r72','r22'),
|
||||
graphPercent($i,'r83','r22'),
|
||||
graphPercent($i,'r84','r22'),
|
||||
graphPercent($i,'r85','r22'),
|
||||
graphPercent($i,'r86','r22'),
|
||||
graphPercent($i,'r87','r22'),
|
||||
);
|
||||
//Génération données graphique SIG
|
||||
$dataSIG[$i] = array(
|
||||
graphPercent($i,'r101','r101')-graphPercent($i,'r122','r101'),
|
||||
graphPercent($i,'r122','r101')-graphPercent($i,'r130','r101'),
|
||||
graphPercent($i,'r130','r101')-graphPercent($i,'r140','r101'),
|
||||
graphPercent($i,'r140','r101')-graphPercent($i,'r150','r101'),
|
||||
graphPercent($i,'r150','r101')-graphPercent($i,'r170','r101'),
|
||||
graphPercent($i,'r170','r101')-graphPercent($i,'r199','r101'),
|
||||
graphPercent($i,'r199','r101'),
|
||||
);
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
//Génération données graphique actif
|
||||
$dataActif = array( graphPercent('r51','r22'),
|
||||
graphPercent('r52','r22'),
|
||||
graphPercent('r53','r22'),
|
||||
graphPercent('r60','r22'),
|
||||
graphPercent('r61','r22'),
|
||||
graphPercent('r62','r22'),
|
||||
graphPercent('r63','r22'),
|
||||
);
|
||||
$firephp->log($dataActif, 'dataActif');
|
||||
//Génération données graphique passif
|
||||
$dataPassif = array( graphPercent('r70','r22'),
|
||||
graphPercent('r71','r22'),
|
||||
graphPercent('r72','r22'),
|
||||
graphPercent('r83','r22'),
|
||||
graphPercent('r84','r22'),
|
||||
graphPercent('r85','r22'),
|
||||
graphPercent('r86','r22'),
|
||||
graphPercent('r87','r22'),
|
||||
);
|
||||
//Génération données graphique SIG
|
||||
$dataSIG = array( graphPercent('r101','r101')-graphPercent('r122','r101'),
|
||||
graphPercent('r122','r101')-graphPercent('r130','r101'),
|
||||
graphPercent('r130','r101')-graphPercent('r140','r101'),
|
||||
graphPercent('r140','r101')-graphPercent('r150','r101'),
|
||||
graphPercent('r150','r101')-graphPercent('r170','r101'),
|
||||
graphPercent('r170','r101')-graphPercent('r199','r101'),
|
||||
graphPercent('r199','r101'),
|
||||
);
|
||||
|
||||
return array(
|
||||
'bilansInfos'=>$bilansInfos,
|
||||
'ratiosEntrep'=>$ratiosEntrep,
|
||||
'ratiosEntrepEvol'=>$ratiosEntrepEvol,
|
||||
'ratiosInfos'=>$ratiosInfos,
|
||||
'dataActif'=>$dataActif,
|
||||
'dataPassif'=>$dataPassif,
|
||||
'dataSIG'=>$dataSIG
|
||||
'bilansInfos' => $bilansInfos,
|
||||
'ratiosEntrep' => $ratiosEntrep,
|
||||
'ratiosEntrepEvol' => $ratiosEntrepEvol,
|
||||
'ratiosInfos' => $ratiosInfos,
|
||||
'dataActif' => $dataActif,
|
||||
'dataPassif' => $dataPassif,
|
||||
'dataSIG' => $dataSIG
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user