From 57a9a7d0529a9064298682262c38c464a24a21d9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 18 Sep 2004 17:50:10 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Plantage=20suite=20=E0=20r=E9gression.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/stats/exercices.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/stats/exercices.php b/htdocs/compta/stats/exercices.php index 1f6e08ab22b..0186a7faa58 100644 --- a/htdocs/compta/stats/exercices.php +++ b/htdocs/compta/stats/exercices.php @@ -44,9 +44,10 @@ if ($conf->compta->mode == 'CREANCES-DETTES') { $mode='creances'; } print_titre("Comparatif CA année en cours avec année précédente (".MAIN_MONNAIE." HT, ".$mode.")"); print "
\n"; + function factures ($db, $year, $month, $paye) { - global $bc; + global $bc,$langs; $sql = "SELECT s.nom, s.idp, f.facnumber, f.total as amount,".$db->pdate("f.datef")." as df, f.paye, f.rowid as facid "; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f WHERE f.fk_soc = s.idp AND f.paye = $paye"; @@ -103,7 +104,7 @@ function factures ($db, $year, $month, $paye) function pt ($db, $sql, $year) { - global $bc; + global $bc,$langs; $result = $db->query($sql); if ($result) { @@ -174,7 +175,7 @@ function pt ($db, $sql, $year) { function ppt ($db, $year, $socidp) { - global $bc,$conf; + global $bc,$conf,$langs; print ""; print "
";