From c79adc7173d04902e847b2556336265dc3fdd054 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 14 Mar 2004 15:57:09 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20tri=20sur=20"Montant=20re=E7u"=20C?= =?UTF-8?q?orrection=20bug=20mineur:=20le=20tri=20sur=20"Montant=20TTC"=20?= =?UTF-8?q?renvoyait=20une=20erreur=20SQL.=20Correction=20bug=20mineur:=20?= =?UTF-8?q?la=20longueur=20de=20la=20liste=20affich=E9e=20=E9tait=201=20de?= =?UTF-8?q?=20trop.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 50773ba82b1..f56e262c472 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -468,7 +468,7 @@ if ($_GET["action"] == 'create') */ $sql = "SELECT p.rowid,p.label,p.ref,p.price FROM ".MAIN_DB_PREFIX."product as p "; $sql .= " WHERE envente = 1"; - $sql .= " ORDER BY p.nbvente DESC LIMIT 20"; + $sql .= " ORDER BY p.nbvente DESC LIMIT ".$conf->liste_limit; if ( $db->query($sql) ) { $opt = ""; @@ -1284,7 +1284,7 @@ else $sql .= " ORDER BY $sortfield $sortorder, f.rowid DESC "; - $sql .= $db->plimit($limit + 1,$offset); + $sql .= $db->plimit($limit,$offset); $result = $db->query($sql); } @@ -1305,8 +1305,10 @@ else print ''; print_liste_field_titre("Montant HT",$PHP_SELF,"f.total","","&socidp=$socidp"); print ''; - print_liste_field_titre("Montant TTC",$PHP_SELF,"f.totalttc","","&socidp=$socidp"); - print 'Reçu'; + print_liste_field_titre("Montant TTC",$PHP_SELF,"f.total_ttc","","&socidp=$socidp"); + print ''; + print_liste_field_titre("Reçu",$PHP_SELF,"am","","&socidp=$socidp"); + print ''; print 'Status'; print "\n";