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 '';