diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php index a209833f7e2..4f7b8a1599b 100644 --- a/htdocs/compta/facture/impayees.php +++ b/htdocs/compta/facture/impayees.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2002-2005 Rodolphe Quiedeville * Copyright (C) 2004 Éric Seigne * Copyright (C) 2004-2005 Laurent Destailleur * @@ -65,8 +65,6 @@ llxHeader('','Factures impay $page = $_GET["page"]; $sortorder=$_GET["sortorder"]; $sortfield=$_GET["sortfield"]; -$month=$_GET["month"]; -$year=$_GET["year"]; if ($page == -1) { @@ -93,10 +91,7 @@ if ($user->rights->facture->lire) if ($socidp) $sql .= " AND s.idp = $socidp"; - - if ($month > 0) - $sql .= " AND date_format(f.datef, '%m') = $month"; - + if ($_GET["filtre"]) { $filtrearr = split(",", $_GET["filtre"]); @@ -127,9 +122,6 @@ if ($user->rights->facture->lire) $sql .= " AND f.total_ttc = '".$_GET["search_montant_ttc"]."'"; } - if ($year > 0) - $sql .= " AND date_format(f.datef, '%Y') = $year"; - if (strlen($_POST["sf_ref"]) > 0) { $sql .= " AND f.facnumber like '%".$_POST["sf_ref"] . "%'"; @@ -212,20 +204,13 @@ if ($user->rights->facture->lire) if ($objp->df > 0 ) { print ""; - $y = strftime("%Y",$objp->df); - $m = strftime("%m",$objp->df); - - print strftime("%d",$objp->df)."\n"; - print ' '; - print substr(strftime("%B",$objp->df),0,3)."\n"; - print ' '; - print strftime("%Y",$objp->df)."\n"; + print strftime("%d %b %Y",$objp->df)."\n"; } else { print "!!!\n"; } - print ''.$objp->nom.''; + print ''.$objp->nom.''; print "".price($objp->total).""; print "".price($objp->total_ttc)."";