Skip to content

Commit

Permalink
FIX Supplier Order list filter by project
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-arnaud committed Jan 30, 2017
1 parent 4f76626 commit c79137d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/fourn/commande/list.php
Expand Up @@ -77,6 +77,7 @@
$search_total_ttc=GETPOST('search_total_ttc','alpha');
$optioncss = GETPOST('optioncss','alpha');
$billed = GETPOST('billed','int');
$search_project_ref=GETPOST('search_project_ref','alpha');

$page = GETPOST('page','int');
$sortorder = GETPOST('sortorder','alpha');
Expand Down Expand Up @@ -204,6 +205,7 @@
$deliverymonth='';
$deliveryyear='';
$billed='';
$search_project_ref='';
$search_array_options=array();

}
Expand Down Expand Up @@ -350,6 +352,7 @@
if ($search_total_ht != '') $sql.= natural_search('cf.total_ht', $search_total_ht, 1);
if ($search_total_vat != '') $sql.= natural_search('cf.tva', $search_total_vat, 1);
if ($search_total_ttc != '') $sql.= natural_search('cf.total_ttc', $search_total_ttc, 1);
if ($search_project_ref != '') $sql.= natural_search("p.ref",$search_project_ref);

// Add where from extra fields
foreach ($search_array_options as $key => $val)
Expand Down

0 comments on commit c79137d

Please sign in to comment.