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 "
";