Commit 539e65e9 authored by Lionel VEST's avatar Lionel VEST
Browse files

Registre des Bénéficiaires Effectifs

parent c1376ef8
......@@ -242,7 +242,36 @@ if ($imr->dossier)
}
}
//BENEFICIAIRES
if ($dossier->identite->identite_PM)
{
$x=0;
foreach($imr->dossier as $dossier)
if ($dossier->beneficiaires && $dossier->identite->dat_immat == $derniere_immatriculation)
foreach($dossier->beneficiaires->beneficiaire as $beneficaire)
{
$beneficiaires[$x]['type_entite'] = strval($beneficaire->type_entite);
$beneficiaires[$x]['nom_naissance'] = strtoupper(strval($beneficaire->nom_naissance));
if ($beneficaire->nom_naissance != $beneficaire->nom_usage)
$beneficiaires[$x]['nom_usage'] = strtoupper(strval($beneficaire->nom_usage));
$beneficiaires[$x]['prenoms'] = strval($beneficaire->prenoms);
$beneficiaires[$x]['date_naissance'] = strval($beneficaire->date_naissance);
$beneficiaires[$x]['nationalite'] = strval($beneficaire->nationalite);
$beneficiaires[$x]['parts_directes_pleine_propr'] = strval($beneficaire->parts_directes_pleine_propr);
$beneficiaires[$x]['detention_part_totale'] = strval($beneficaire->detention_part_totale);
$beneficiaires[$x]['vote_direct_pleine_propriete'] = strval($beneficaire->vote_direct_pleine_propriete);
$beneficiaires[$x]['detention_vote_total'] = strval($beneficaire->detention_vote_total);
$beneficiaires[$x]['detention_pouvoir_decision_ag'] = strval($beneficaire->detention_pouvoir_decision_ag);
$beneficiaires[$x]['deten_pvr_nom_membr_cons_admin'] = strval($beneficaire->deten_pvr_nom_membr_cons_admin);
$beneficiaires[$x]['detent_autres_moyens_controle'] = strval($beneficaire->detent_autres_moyens_controle);
$beneficiaires[$x]['benef_reprst_legal'] = strval($beneficaire->benef_reprst_legal);
$beneficiaires[$x]['rep_legal_placmt_ss_gest_deleg'] = strval($beneficaire->rep_legal_placmt_ss_gest_deleg);
$beneficiaires[$x]['date_greffe'] = date('d/m/Y',strtotime($beneficaire->date_greffe));
$beneficiaires[$x]['date_integration'] = date('d/m/Y',strtotime($beneficaire->date_integration));
$x++;
}
}
//ACTES
if (!$actes)
{
......@@ -303,4 +332,4 @@ if ($imr->dossier)
file_put_contents('imrs/' . $_GET['siren'] . '_actes.json',json_encode($actes));
}
?>
\ No newline at end of file
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment