diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 03dd805432a..15ea58f75f5 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -95,7 +95,7 @@ if ($sortfield == "") } -$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 = "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.total_ttc, fac.paye, fac.libelle, ".$db->pdate("fac.datef")." as datef, fac.rowid as facid, fac.facnumber"; $sql .= " FROM llx_societe as s, llx_facture_fourn as fac "; $sql .= " WHERE fac.fk_soc = s.idp"; @@ -124,12 +124,20 @@ if ($result) print ""; print ''; print ''; - print ''; - print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; print "\n"; $var=True; while ($i < $num) @@ -140,12 +148,12 @@ if ($result) print ""; print "\n"; - print "\n"; - print ''; + print "\n"; + print ''; print "\n"; print ''; - - print ''; + print ''; + print ''; print "\n";
NuméroDateLibellé'; + print ''; + print_liste_field_titre("Date",$PHP_SELF,"fac.datef"); + print 'Libellé'; print_liste_field_titre("Société",$PHP_SELF,"s.nom"); - print ''; - print_liste_field_titre("Montant",$PHP_SELF,"fac.total_ht"); - print 'Payé'; + print_liste_field_titre("Montant HT",$PHP_SELF,"fac.total_ht"); + print ''; + print_liste_field_titre("Montant TTC",$PHP_SELF,"fac.total_ttc"); + print 'Payé
facid\">$obj->facnumberfacid\">".strftime("%d %b %Y",$obj->datef)."'.stripslashes("$obj->libelle").'".strftime("%d %b %Y",$obj->datef)."'.stripslashes("$obj->libelle").'socid\">$obj->nom'.price($obj->total_ht).''.$yn[$obj->paye].''.price($obj->total_ttc).''.($obj->paye||$obj->total_ht==0?"":"").($obj->total_ht==0?"brouillon":$yn[$obj->paye]).($obj->paye||$obj->total_ht==0?"":"").'