diff --git a/library/Scores/Ciblage.php b/library/Scores/Ciblage.php index 3df935a6..a73aaf69 100644 --- a/library/Scores/Ciblage.php +++ b/library/Scores/Ciblage.php @@ -121,7 +121,7 @@ Class Ciblage return ($depts); } protected function writeRequest($name, $valeur, $ex, $or = false) { - if(in_array($name, array('adr_com_ex', 'adr_dept_ex', 'bilType_ex', 'ape_etab_ex'))) { + if(in_array($name, array('adr_com_ex', 'adr_dept_ex', 'bilType_ex', 'ape_etab_ex', 'ape_entrep_ex'))) { if(!strstr($this->alpha, 'adr_dept') or !strstr($this->alpha, 'ape_etab') or !strstr($this->alpha, 'bilType') or @@ -164,7 +164,7 @@ Class Ciblage protected function setAlpha($name, $valeur, $ex = false) { $or = array('adr_com', 'adr_dept', 'adr_com_ex', 'adr_dept_ex'); - $and = array('bilType', 'ape_etab_ex', 'ape_etab','ape_entrep', 'NaceEntrep', 'NaceEtab', 'bilType_ex'); + $and = array('bilType', 'ape_etab_ex', 'ape_etab','ape_entrep', 'ape_entrep_ex', 'NaceEntrep', 'NaceEtab', 'bilType_ex'); if(!empty($this->alpha)) $this->alpha .= ' '; if(in_array($name, $or)) { @@ -233,6 +233,9 @@ Class Ciblage protected function ape_entrep($valeur) { $this->setAlpha('ape_entrep', $valeur); } + protected function ape_entrep_ex($valeur) { + $this->setAlpha('ape_entrep_ex', $valeur, true); + } protected function age_entrep($valeur) { $this->setAlpha('age_entrep', $valeur); }