From 4ba0413b62458762e37785297bf342a0ed1585a1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 29 Oct 2003 12:09:33 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20liens=20vers=20les=20factures=20d'une?= =?UTF-8?q?=20soci=E9t=E9=20dans=20la=20liste=20des=20fournisseurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/resultat/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/resultat/index.php b/htdocs/compta/resultat/index.php index 8a6f4f051a8..9f0a6818cae 100644 --- a/htdocs/compta/resultat/index.php +++ b/htdocs/compta/resultat/index.php @@ -81,10 +81,10 @@ print ''.price($total).''; * * */ -$sql = "SELECT s.nom,sum(f.total_ht) as amount"; +$sql = "SELECT s.nom,s.idp,sum(f.total_ht) as amount"; $sql .= " FROM llx_societe as s,llx_facture_fourn as f WHERE f.fk_soc = s.idp"; -$sql .= " GROUP BY s.nom ASC"; +$sql .= " GROUP BY s.nom ASC, s.idp"; print 'Frais'; $subtotal = 0; @@ -100,7 +100,7 @@ if ($result) { $var=!$var; print " "; - print "Factures $objp->nom\n"; + print "Factures idp."\">$objp->nom\n"; print "".price($objp->amount)."\n";