Skip to content

Commit

Permalink
code pour fonctionnement declarvins
Browse files Browse the repository at this point in the history
  • Loading branch information
jblemetayer committed Jun 18, 2024
1 parent 56a50eb commit 94f6b5c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,16 @@ public function getSocietesLiees() {
}

public function getSocietesLieesIds() {

$compte = $this->getMasterCompte();
if (!$this->exist('societes_liees') && method_exists($compte, 'getTiersCollection')) {
$societesLiees = [];
foreach($compte->getTiersCollection() as $tiers) {
if ($tiers->exist('societe') && $tiers->_get('societe')) {
$societesLiees[] = $tiers->_get('societe');
}
}
return $societesLiees;
}
return array_merge(array($this->_id), is_array($this->societes_liees) ? $this->societes_liees : $this->societes_liees->toArray());
}

Expand Down

0 comments on commit 94f6b5c

Please sign in to comment.