diff --git a/include/ajax_boxcard_search.php b/include/ajax_boxcard_search.php index c2c33bebc..6942413f2 100644 --- a/include/ajax_boxcard_search.php +++ b/include/ajax_boxcard_search.php @@ -27,17 +27,12 @@ * */ $sql=" - select vw.f_id,vw_name,vw_first_name,vw_description,fd_label,quick_code,pc.ad_value as poste,tva_num + select distinct vw.f_id,vw_name,vw_first_name,vw_description,fd_label,quick_code,tva_num from vw_fiche_attr as vw join fiche_def as fd on (vw.fd_id=fd.fd_id) - left join (select f_id,ad_value from fiche_detail where ad_id=5) as pc on (pc.f_id=vw.f_id) + left join fiche_detail as pc on (pc.f_id=vw.f_id) where - vw_name ~* $1 - or vw_first_name ~* $1 - or vw_description ~* $1 - or tva_num ~* $1 - or pc.ad_value like $1||'%' - or quick_code like upper($1||'%') + ad_value ~* $1 order by 2 "; $array=$cn->get_array($sql,array($_GET['card'])); @@ -48,17 +43,19 @@ $max=(count($array)>MAX_CARD_SEARCH)?MAX_CARD_SEARCH:count($array);

Résultat limité à , nombre de fiches trouvées :

- +Filtre . +
- + + @@ -74,10 +71,8 @@ $max=(count($array)>MAX_CARD_SEARCH)?MAX_CARD_SEARCH:count($array);

Aucun résultat

- - + + @@ -85,6 +80,9 @@ $max=(count($array)>MAX_CARD_SEARCH)?MAX_CARD_SEARCH:count($array);   +
- Categorie - Quick Code Nom + Categorie + Description
- -
+ + diff --git a/include/constant.php b/include/constant.php index f4bbcc9bd..8d96e7eab 100644 --- a/include/constant.php +++ b/include/constant.php @@ -56,7 +56,7 @@ define ('NOTFOUND','--not found--'); define ("MAX_COMPTE",4); define ('MAX_ARTICLE',12); define ('MAX_CAT',15); -define ('MAX_CARD_SEARCH',50); +define ('MAX_CARD_SEARCH',550); define ('MAX_FORECAST_ITEM',10); define ('MAX_PREDEFINED_OPERATION',30); define ('MAX_COMPTE_CARD',4);