From 01e1856c9e1c270680a52a6410942de88dbabaa0 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 9 Feb 2005 13:43:13 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20info=20affich=E9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/facture/index.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/telephonie/facture/index.php b/htdocs/telephonie/facture/index.php index 3a694edf7f8..a9afe0b86e5 100644 --- a/htdocs/telephonie/facture/index.php +++ b/htdocs/telephonie/facture/index.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2005 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -71,12 +71,12 @@ print ''; * */ -$sql = "SELECT date_format(f.datef,'%Y%m'),sum(f.total_ttc)"; +$sql = "SELECT date_format(f.datef,'%Y%m'),sum(cout_vente),count(cout_vente)"; $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_facture as tf"; $sql .= " , ".MAIN_DB_PREFIX."facture as f"; $sql .= " WHERE tf.fk_facture = f.rowid"; -$sql .= " GROUP BY date_format(f.datef,'%Y%m')"; +$sql .= " GROUP BY date_format(f.datef,'%Y%m') DESC"; if ($db->query($sql)) { @@ -85,7 +85,8 @@ if ($db->query($sql)) $ligne = new LigneTel($db); print ''; - print ''; + print ''; + print ''; print "\n"; $var=True; @@ -96,7 +97,8 @@ if ($db->query($sql)) print ""; print "\n"; - print "\n"; + print '\n"; + print '\n"; print "\n"; $i++; }
FacturesNb
FacturesSommeNb
".$row[0]."".$row[1]."'.price($row[1])."'.$row[2]."