diff --git a/htdocs/fourn/facture/index.php3 b/htdocs/fourn/facture/index.php3 index 47694dbcba8..58ad8fe77d9 100644 --- a/htdocs/fourn/facture/index.php3 +++ b/htdocs/fourn/facture/index.php3 @@ -116,15 +116,15 @@ else if ($sortorder == "") { - $sortorder="ASC"; + $sortorder="DESC"; } if ($sortfield == "") { - $sortfield="fac.paye"; + $sortfield="fac.paye ASC, fac.datef"; } - $sql = "SELECT s.idp as socid, s.nom, ".$db->pdate("s.datec")." as datec, ".$db->pdate("s.datea")." as datea, s.prefix_comm, fac.amount, fac.paye, fac.libelle, ".$db->pdate("fac.datef")." as datef, fac.rowid as facid, fac.facnumber"; + $sql = "SELECT s.idp as socid, s.nom, ".$db->pdate("s.datec")." as datec, ".$db->pdate("s.datea")." as datea, s.prefix_comm, fac.total_ht, fac.paye, fac.libelle, ".$db->pdate("fac.datef")." as datef, fac.rowid as facid, fac.facnumber"; $sql .= " FROM societe as s, llx_facture_fourn as fac "; $sql .= " WHERE fac.fk_soc = s.idp"; @@ -144,8 +144,8 @@ else } print "

"; print ''; - print "'; + print ''; print ''; @@ -160,7 +160,7 @@ else print "\n"; print "\n"; print "\n"; - print ''; + print ''; print '';
Numéro"; - print "Libelle"; + print 'NuméroLibellé'; print_liste_field_titre("Société",$PHP_SELF,"s.nom"); print 'MontantPayéfacid\">$obj->facnumberfacid\">$obj->libellesocid\">$obj->nom'.price($obj->amount).''.price($obj->total_ht).''.$yn[$obj->paye].'