From 475620508bf558a8489b9f7165b840c60f7d21ef Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 28 Oct 2003 14:30:29 +0000 Subject: [PATCH] Tri les factures par date --- htdocs/fourn/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php index 0622157611a..a9f51f81d76 100644 --- a/htdocs/fourn/fiche.php +++ b/htdocs/fourn/fiche.php @@ -182,7 +182,7 @@ if ($socid > 0) */ $sql = "SELECT p.rowid,p.libelle,p.facnumber,".$db->pdate("p.datef")." as df"; $sql .= " FROM llx_facture_fourn as p WHERE p.fk_soc = $objsoc->idp"; - $sql .= " ORDER BY p.rowid DESC LIMIT 0,4"; + $sql .= " ORDER BY p.datef DESC LIMIT 0,4"; if ( $db->query($sql) ) { print '';