Ajout de champs oubliés comme (bilCloture, bilTca)
This commit is contained in:
parent
73b0249a5a
commit
d81a4df56f
@ -101,7 +101,7 @@ Class Ciblage
|
||||
|
||||
protected function setAlpha($name, $valeur)
|
||||
{
|
||||
$or = array('adr_cp', 'adr_dep');
|
||||
$or = array('adr_cp', 'adr_dep', 'bilType');
|
||||
$and = array('ape_entrep', 'ape_etab', 'age_entrep', 'age_etab', 'NaceEntrep', 'NaceEtab');
|
||||
|
||||
if(in_array($name, $or)) {
|
||||
@ -289,7 +289,7 @@ Class Ciblage
|
||||
}
|
||||
|
||||
protected function bilType($valeur) {
|
||||
$this->setFilter('bilType', $valeur);
|
||||
$this->setAlpha('bilType', $valeur);
|
||||
}
|
||||
|
||||
protected function bilAnnee($valeur) {
|
||||
@ -387,4 +387,19 @@ Class Ciblage
|
||||
protected function mail($valeur) {
|
||||
$this->setFilter('mail', $valeur);
|
||||
}
|
||||
|
||||
protected function bilCloture($valeur) {
|
||||
if(!is_array($valeur)) {
|
||||
$format = explode('/', $valeur);
|
||||
$valeur = $format[2].$format[1].$format[0];
|
||||
} else {
|
||||
$format1 = explode('/', $valeur[0]);
|
||||
$format2 = explode('/', $valeur[0]);
|
||||
|
||||
$valeur[0] = $format1[2].$format1[1].$format1[0];
|
||||
$valeur[1] = $format2[2].$format2[1].$format2[0];
|
||||
}
|
||||
//print_r($valeur);
|
||||
$this->setFilterRange('bilCloture', $valeur);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user