Tri les factures par date

This commit is contained in:
Rodolphe Quiedeville 2003-10-28 14:30:29 +00:00
parent cb9f52973a
commit 475620508b

View File

@ -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 '<table class="noborder" cellspacing="0" width="100%" cellpadding="1">';