getIdentite : renvoi AdresseDomEnt et AutreSiren
This commit is contained in:
parent
360f85c72a
commit
d14d39345a
@ -127,7 +127,18 @@ class WsEntreprise extends WsScore
|
||||
$identite->Pays = $entrep['Pays']; // Ajouté le 18 02 2008
|
||||
$identite->PaysIso2 = $entrep['PaysIso2'];
|
||||
$identite->AdresseDom = $entrep['AdresseDom'];
|
||||
$identite->AdresseDomEnt = $entrep['AdresseDomEnt'];
|
||||
|
||||
$tabAdresseDomEnt = array();
|
||||
if (isset($entrep['AdresseDomEnt']) && count($entrep['AdresseDomEnt'])>0){
|
||||
foreach ($entrep['AdresseDomEnt'] as $element){
|
||||
$adresseDomEnt = new AdresseDomEnt();
|
||||
$adresseDomEnt->siren = $element['siren'];
|
||||
$adresseDomEnt->nom = $element['nom'];
|
||||
$tabAdresseDomEnt[] = $adresseDomEnt;
|
||||
}
|
||||
}
|
||||
$identite->AdresseDomEnt = $tabAdresseDomEnt;
|
||||
|
||||
$identite->AdresseDomNb = $entrep['AdresseDomNb'];
|
||||
$identite->Civilite = $entrep['Civilite'];
|
||||
$identite->NbEtab = $entrep['NbEtab'];
|
||||
@ -209,6 +220,8 @@ class WsEntreprise extends WsScore
|
||||
$identite->Saisonnalite = $entrep['Saisonnalite']; // P=Activité permanente / S=Activité saisonnière
|
||||
$identite->SituationJuridique = $entrep['SituationJuridique'];
|
||||
|
||||
|
||||
|
||||
$identite->Bilan->Cloture = $entrep['bilanDate']; //@todo : date
|
||||
$identite->Bilan->Duree = $entrep['bilanMois'];
|
||||
$identite->Bilan->Devise = $entrep['bilanDevise'];
|
||||
@ -217,6 +230,8 @@ class WsEntreprise extends WsScore
|
||||
$identite->Bilan->Resultat = $entrep['bilanHN'];
|
||||
$identite->Bilan->Effectif = $entrep['bilanYP'];
|
||||
|
||||
|
||||
|
||||
$identite->Bourse->placeCotation = $bourse['placeCotation'];
|
||||
$identite->Bourse->nombreTitres = $bourse['nombreTitres'];
|
||||
$identite->Bourse->capitalisation = $bourse['close']*$bourse['nombreTitres'];
|
||||
@ -224,11 +239,11 @@ class WsEntreprise extends WsScore
|
||||
$identite->Bourse->derCoursCloture = $bourse['close']; //@todo : date
|
||||
|
||||
$tabAutreSiren = array();
|
||||
foreach ( $entrep['AutreSiren']['listeSiren'] as $element ){
|
||||
if (isset($entrep['AutreSiren'])) {
|
||||
$autreSiren = new AutreSiren();
|
||||
$autreSiren->siren = $element['siren'];
|
||||
$autreSiren->type = $element['type'];
|
||||
$tabAutreSiren[] = $auterSiren;
|
||||
$autreSiren->siren = $entrep['AutreSiren']['listeSiren']['siren'];
|
||||
$autreSiren->type = $entrep['AutreSiren']['listeSiren']['type'];
|
||||
$tabAutreSiren[] = $autreSiren;
|
||||
}
|
||||
$identite->AutreSiren = $tabAutreSiren;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user