From 360f2f937647ccc2b5819f382b8c4519f2e3031f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 26 Jan 2004 22:53:31 +0000 Subject: [PATCH] =?UTF-8?q?Coloration=20de=20l'=E9tat=20des=20factures=20f?= =?UTF-8?q?ournisseurs.=20(Style=20"impayes"=20pour=20les=20impayes,=20sta?= =?UTF-8?q?ndard=20sinon).=20Ajout=20du=20montant=20TTC=20en=20plus=20du?= =?UTF-8?q?=20HT=20sur=20la=20liste=20des=20factures=20fournisseurs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/facture/index.php | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) 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?"":"").'