diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php
index 720e20c202a..0346a0a18a8 100644
--- a/htdocs/fourn/fiche.php
+++ b/htdocs/fourn/fiche.php
@@ -126,7 +126,7 @@ if ( $societe->fetch($socid) )
print '
';
$var=true;
- $MAXLIST=4;
+ $MAXLIST=5;
// Lien recap
print '';
@@ -145,7 +145,7 @@ if ( $societe->fetch($socid) )
$sql = "SELECT p.rowid,p.ref,".$db->pdate("p.date_commande")." as dc, p.fk_statut";
$sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as p ";
$sql.= " WHERE p.fk_soc =".$societe->id;
- $sql.= " ORDER BY p.rowid";
+ $sql.= " ORDER BY p.date_commande DESC";
$sql.= " ".$db->plimit($MAXLIST);
$resql=$db->query($sql);
if ($resql)
@@ -157,7 +157,7 @@ if ( $societe->fetch($socid) )
print '';
print '';
print '';
- print '| '.$langs->trans("LastOrders",($num<=$MAXLIST?"":$MAXLIST)).' | ';
+ print '';
print ' ';
}
| |