From d5f0b976a1ed43857638887c5c1f4ee657a43434 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 12 Nov 2005 21:10:01 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Tri=20sur=20ref=20en=20cas=20d'=E9galit?= =?UTF-8?q?=E9=20sur=20autres=20criteres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture/impayees.php | 2 +- htdocs/compta/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php index 00da2bb6d9d..52bcd8213bf 100644 --- a/htdocs/compta/facture/impayees.php +++ b/htdocs/compta/facture/impayees.php @@ -121,7 +121,7 @@ if ($user->rights->facture->lire) $sql.= " ORDER BY "; $listfield=split(',',$sortfield); foreach ($listfield as $key => $value) $sql.=$listfield[$key]." ".$sortorder.","; - $sql.= " f.fk_soc ASC"; + $sql.= " f.facnumber DESC"; //$sql .= $db->plimit($limit+1,$offset); diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index a12479ad677..469d34c9230 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -340,7 +340,7 @@ if ($conf->facture->enabled && $user->rights->facture->lire) $sql.= " WHERE s.idp = f.fk_soc AND f.paye = 0 AND f.fk_statut = 1"; if ($socidp) $sql .= " AND f.fk_soc = $socidp"; $sql.= " GROUP BY f.facnumber, f.rowid, s.nom, s.idp, f.total, f.total_ttc"; - $sql.= " ORDER BY f.datef ASC "; + $sql.= " ORDER BY f.datef ASC, f.facnumber ASC"; $resql = $db->query($sql); if ($resql)