Set default filter
This commit is contained in:
parent
02e8879d3b
commit
877e60c76f
@ -49,7 +49,6 @@ $builddoc_generatebutton=GETPOST('builddoc_generatebutton');
|
|||||||
$month = GETPOST("month","int");
|
$month = GETPOST("month","int");
|
||||||
$year = GETPOST("year","int");
|
$year = GETPOST("year","int");
|
||||||
$filter = GETPOST("filtre");
|
$filter = GETPOST("filtre");
|
||||||
|
|
||||||
if (GETPOST('button_search'))
|
if (GETPOST('button_search'))
|
||||||
{
|
{
|
||||||
$filter=GETPOST('filtre',2);
|
$filter=GETPOST('filtre',2);
|
||||||
@ -58,6 +57,7 @@ if (GETPOST('button_search'))
|
|||||||
if ($option == 'late') $filter = 'paye:0';
|
if ($option == 'late') $filter = 'paye:0';
|
||||||
if ($option == 'unpaidall') $filter = 'paye:0';
|
if ($option == 'unpaidall') $filter = 'paye:0';
|
||||||
if ($mode == 'sendremind' && $filter == '') $filter = 'paye:0';
|
if ($mode == 'sendremind' && $filter == '') $filter = 'paye:0';
|
||||||
|
if ($filter == '') $filter = 'paye:0';
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user