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 "
| Numéro | "; - print " | Libelle | "; + print ' | Numéro | '; + print 'Libellé | '; print_liste_field_titre("Société",$PHP_SELF,"s.nom"); print ' | Montant | '; print 'Payé | '; @@ -160,7 +160,7 @@ else print "facid\">$obj->facnumber | \n"; print "facid\">$obj->libelle | \n"; print "socid\">$obj->nom | \n"; - print ''.price($obj->amount).' | '; + print ''.price($obj->total_ht).' | '; print ''.$yn[$obj->paye].' | ';