New: Can filter on status
This commit is contained in:
parent
61f11d3621
commit
55fc3165ba
@ -64,6 +64,7 @@ $search_ref=GETPOST('sf_ref')?GETPOST('sf_ref','alpha'):GETPOST('search_ref','al
|
|||||||
$search_societe=GETPOST('search_societe','alpha');
|
$search_societe=GETPOST('search_societe','alpha');
|
||||||
$search_montant_ht=GETPOST('search_montant_ht','alpha');
|
$search_montant_ht=GETPOST('search_montant_ht','alpha');
|
||||||
$search_montant_ttc=GETPOST('search_montant_ttc','alpha');
|
$search_montant_ttc=GETPOST('search_montant_ttc','alpha');
|
||||||
|
$search_status=GETPOST('search_status','alpha');
|
||||||
|
|
||||||
$sortfield = GETPOST("sortfield",'alpha');
|
$sortfield = GETPOST("sortfield",'alpha');
|
||||||
$sortorder = GETPOST("sortorder",'alpha');
|
$sortorder = GETPOST("sortorder",'alpha');
|
||||||
@ -116,6 +117,8 @@ if (GETPOST("button_removefilter_x"))
|
|||||||
$search_refcustomer='';
|
$search_refcustomer='';
|
||||||
$search_societe='';
|
$search_societe='';
|
||||||
$search_montant_ht='';
|
$search_montant_ht='';
|
||||||
|
$search_montant_ttc='';
|
||||||
|
$search_status='';
|
||||||
$year='';
|
$year='';
|
||||||
$month='';
|
$month='';
|
||||||
}
|
}
|
||||||
@ -185,6 +188,10 @@ if ($search_montant_ttc)
|
|||||||
{
|
{
|
||||||
$sql.= ' AND f.total_ttc = \''.$db->escape(price2num(trim($search_montant_ttc))).'\'';
|
$sql.= ' AND f.total_ttc = \''.$db->escape(price2num(trim($search_montant_ttc))).'\'';
|
||||||
}
|
}
|
||||||
|
if ($search_status != '')
|
||||||
|
{
|
||||||
|
$sql.= " AND f.fk_statut = '".$db->escape($search_status)."'";
|
||||||
|
}
|
||||||
if ($month > 0)
|
if ($month > 0)
|
||||||
{
|
{
|
||||||
if ($year > 0 && empty($day))
|
if ($year > 0 && empty($day))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user