From 66341e0d06a829c4d71952463204b9ec34acbb75 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 16 Feb 2004 21:33:36 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20du=20statut=20d'une=20facture=20qu?= =?UTF-8?q?i=20doit=20maintenant=20se=20bas=E9=20sur=20llx=5Fpaiement=5Ffa?= =?UTF-8?q?ctures=20au=20lieu=20de=20llx=5Fpaiement=20pour=20connaitre=20l?= =?UTF-8?q?e=20montant=20d=E9j=E0=20vers=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index ca7bc725bc0..36a76fe6a45 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1247,8 +1247,8 @@ else if ($sortfield == "") $sortfield="f.datef"; - $sql = "SELECT s.nom,s.idp,f.facnumber,f.total,f.total_ttc,".$db->pdate("f.datef")." as df,f.paye,f.rowid as facid, f.fk_statut, sum(p.amount) as am"; - $sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f left join ".MAIN_DB_PREFIX."paiement as p on f.rowid=p.fk_facture WHERE f.fk_soc = s.idp"; + $sql = "SELECT s.nom,s.idp,f.facnumber,f.total,f.total_ttc,".$db->pdate("f.datef")." as df,f.paye,f.rowid as facid, f.fk_statut, sum(pf.amount) as am"; + $sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f left join ".MAIN_DB_PREFIX."paiement_facture as pf on f.rowid=pf.fk_facture WHERE f.fk_soc = s.idp"; if ($socidp) $sql .= " AND s.idp = $socidp"; @@ -1290,8 +1290,9 @@ else $i = 0; print ''; print ''; - print ''; - print '
Numéro'; + print ''; + print_liste_field_titre("Numéro",$PHP_SELF,"f.facnumber","","&socidp=$socidp"); + print ''; print_liste_field_titre("Date",$PHP_SELF,"f.datef","","&socidp=$socidp"); print ''; print_liste_field_titre("Société",$PHP_SELF,"s.nom","","&socidp=$socidp");