Lien : Ultimate head, ne pas s'arreter à la personne physique
This commit is contained in:
parent
df6eb2af72
commit
d11aa7b6ba
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user