Skip to content

Commit

Permalink
Merge pull request #6348 from atm-arnaud/FIX_project_filter_supplier_…
Browse files Browse the repository at this point in the history
…order

FIX Supplier Order list filter by project
  • Loading branch information
eldy committed Feb 2, 2017
2 parents 18f3e11 + c79137d commit cfb317a
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 cfb317a

Please sign in to comment.