diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php index 90c5c867610..96ae1208948 100644 --- a/htdocs/compta/paiement/cheque/fiche.php +++ b/htdocs/compta/paiement/cheque/fiche.php @@ -59,6 +59,7 @@ $offset = $limit * $page ; $dir=$conf->banque->dir_output.'/bordereau/'; $filterdate=dol_mktime(0,0,0,$_POST['fdmonth'],$_POST['fdday'],$_POST['fdyear']); +$filteraccountid=GETPOST('accountid'); //var_dump($_POST); /* @@ -222,6 +223,12 @@ if ($action == 'builddoc' && $user->rights->banque->cheque) * View */ +if (GETPOST('removefilter')) +{ + $filterdate=''; + $filteraccountid=0; +} + llxHeader(); $html = new Form($db); @@ -297,11 +304,19 @@ if ($action == 'new') print '
| '.$langs->trans('Date').' | '.dol_print_date($now,'day').' |
| '.$langs->trans("Date").' | '; - print $html->select_date($filterdate,'fd',0,0,1); + print ' |
| '.$langs->trans("Date").' | '; + print $html->select_date($filterdate,'fd',0,0,1,'',1,1); print ' |
| '.$langs->trans("BankAccount").' | '; + print $html->select_comptes($filteraccountid,'accountid',0,0,1); + print ' |
| '; print ''; + if ($filterdate || $filteraccountid > 0) + { + print ' '; + print ''; + } print ' | |