Commit 1cd2bbb2 authored by mbriand's avatar mbriand
Browse files

Les produits plus en vente ne doivent pas apparaitre dans la recherche

parent 7d73a91e
......@@ -246,6 +246,7 @@ class fsearch extends stdcontents
"USING (`id_typeprod`) ".
"WHERE `cpt_mise_en_vente`.`id_comptoir` = 3 ".
"AND `cpt_produits`.`prod_archive` = 0 AND " .
"AND datediff(curdate(), `date_fin_produit`) <= 0 ".
"(`nom_prod` REGEXP '".$sqlpattern."' OR " .
"`nom_typeprod` REGEXP '".$sqlpattern."') " .
"ORDER BY `nom_typeprod`, `nom_prod` " .
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment