Lien : Ultimate head, ne pas s'arreter à la personne physique

This commit is contained in:
Michael RICOIS 2016-01-11 13:54:19 +00:00
parent df6eb2af72
commit d11aa7b6ba
2 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,12 @@ class MLiens2
*/
public $stopAtFirstIsin = false;
/**
* Stop the process to looks for physical person
* @var boolean
*/
public $stopAtPP = true;
/**
* Databas table name
* @var string
@ -262,7 +268,7 @@ class MLiens2
break;
}
//Remove physical person
elseif ( $item->PpPm == 'PP' ) {
elseif ( $item->PpPm == 'PP' && $this->stopAtPP ) {
continue;
}
//Same id

View File

@ -1637,6 +1637,7 @@ function LienHeadUltimateData($siren, $nic, $values)
require_once 'Metier/partenaires/classMLiens2.php';
$c = new MLiens2($siren, 'siren', $dbJo);
$c->stopAtPP = false;
$id = $c->getHead();
$result = $c->getIdentity($id);
$tabData = array();