issue #0001549 : N'affiche pas de tiers lorsque pas du BODACC

This commit is contained in:
Michael RICOIS 2013-03-21 16:39:03 +00:00
parent 1496e7bbbd
commit 8ae96edb27

View File

@ -1645,14 +1645,14 @@ class Entreprise extends WsScore
if (is_array($anns))
{
foreach ($anns as $nb => $ann)
{
foreach ($anns as $nb => $ann) {
if ($isList===true && $nb<$position) { continue; }
$cpt++;
if ($isList===true && $cpt>$nbRep) { break; }
//@todo : Entites
$entites = array();
if (in_array($ann['BodaccCode'], array('BODA', 'BODB', 'BODC'))) {
$detailM = new Application_Model_JoBodaccDetail();
$sql = $detailM->select()->from($detailM, array(
'LPAD(siren, 9, 000000000) AS siren',
@ -1675,6 +1675,7 @@ class Entreprise extends WsScore
$entites[] = $entite;
}
}
}
//List events
$evens = array();