issue #0001851 : conversion des bilans simplifiés en bilan normal avant de préparer l'affichage monétaire
This commit is contained in:
parent
532c628028
commit
ebb10e0307
@ -32,26 +32,31 @@ class Scores_Finance_Liasse
|
||||
'source' => $data->SOURCE,
|
||||
);
|
||||
|
||||
$postesData = array();
|
||||
foreach ( $data->POSTES->item as $element ) {
|
||||
$postesData[$element->id] = $element->val;
|
||||
}
|
||||
|
||||
//Transformation Simplifié en Normal
|
||||
if ( $data->CONSOLIDE == 'S'){
|
||||
$postesData = $this->bilanSimplifie2Normal($postesData);
|
||||
}
|
||||
|
||||
//Affectaction des postes
|
||||
foreach ($data->POSTES->item as $element){
|
||||
foreach ($postesData as $id => $val){
|
||||
if (in_array($element->id, array(
|
||||
'YP', 'YP1', '376', // Effectifs 2033 et 2050
|
||||
'M2G', 'M2H', // Autres effectifs
|
||||
'ZK', 'ZK1', // Taux
|
||||
'IJ', 'JG', 'JH', 'JJ', 'ZR', // pour holding/ste mere
|
||||
'XP' //numero de centre de gestion agréé
|
||||
'XP' // numero de centre de gestion agréé
|
||||
)))
|
||||
{
|
||||
$this->postes[$element->id] = number_format($element->val, 0, '', ' ');
|
||||
$this->postes[$id] = number_format($val, 0, '', ' ');
|
||||
} else {
|
||||
$this->postes[$element->id] = $this->dMontant($element->val);
|
||||
$this->postes[$id] = $this->dMontant($val);
|
||||
}
|
||||
}
|
||||
|
||||
//Transformation Simplifié en Normal
|
||||
if ( $data->CONSOLIDE == 'S'){
|
||||
$this->postes = $this->bilanSimplifie2Normal($this->postes);
|
||||
}
|
||||
}
|
||||
|
||||
public function getInfo($key)
|
||||
|
Loading…
Reference in New Issue
Block a user