0

immobilier

let plainPied := 'Plain-pied';
let chambre := Chambres;
let villeBien := text(Ville);
let typeDuBien := concat(Type);
let prixDuBien := 'Prix F.A.I à supprimer';
let statut := Statut;
let typeRecherche := "";
function request(typeRecherche : text) do
select 'Prospects Clients'
where 'Type Contact' like "Acquéreur" and Etat like "En recherche" and if 'Type de recherche' then
'Type de recherche' like typeRecherche
else
true
end and if 'Vivable de plain-pied' then
'Vivable de plain-pied' = plainPied
else
true
end and if chambre then
if text('Nbr chambres') like "> 5" then
number(chambre) > 5 or contains(concat('Nbr chambres'), text(chambre))
else
contains(concat('Nbr chambres'), text(chambre))
end and if prixDuBien then
prixDuBien <= 'Budjet FAI' * 'Pourcentage du prix' / 100 + 'Budjet FAI'
else
true
end and if typeDuBien then
contains(typeDuBien, text('Type de bien'))
else
true
end
else
true
end
end;
if statut then
if statut like "En vente" then
request("Achat")
else
request("Location")
end
else
request("")
end

Reply

null

Content aside

  • 4 yrs agoLast active
  • 423Views