Fix issue with some poste these are not rely to the unit

This commit is contained in:
Michael RICOIS 2013-09-25 11:46:45 +00:00
parent 74b4e69298
commit 0560448501

View File

@ -34,15 +34,15 @@ class Liasse
//Affectaction des postes
foreach ($data->POSTES->item as $element){
if (in_array(array(
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éé
), $element->id))
)))
{
$this->postes[$element->id] = $element->val;
$this->postes[$element->id] = number_format($element->val, 0, '', ' ');
} else {
$this->postes[$element->id] = $this->dMontant($element->val);
}
@ -177,10 +177,10 @@ class Liasse
'YY'=>'374',
'YZ'=>'378',
'YP'=>'376',
//@todo : Traiter N-1
//@todo : Traiter N-1
);
$bilanRN=array();