From 8a3e146d235bacee25a5e4014f33e475c85b9c91 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 12 Jul 2007 09:41:07 +0000 Subject: [PATCH] Genere les contrats --- htdocs/telephonie/facturation/stats.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/facturation/stats.php b/htdocs/telephonie/facturation/stats.php index 135fb45a260..0dca9e9b9a0 100644 --- a/htdocs/telephonie/facturation/stats.php +++ b/htdocs/telephonie/facturation/stats.php @@ -25,10 +25,17 @@ if (!$user->rights->telephonie->facture->ecrire) accessforbidden(); llxHeader(); + +$messages = array(); + require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/ProcessGraphLignes.class.php"); +require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/ProcessGraphContrats.class.php"); $obj = new ProcessGraphLignes($db); $obj->GenerateAll(); - +$messages = array_merge($messages, $obj->messages); +$obj = new ProcessGraphContrats($db); +$obj->GenerateAll(); +$messages = array_merge($messages, $obj->messages); /* * Sécurité accés client @@ -44,7 +51,7 @@ print "\n"; $var=True; -foreach ($obj->messages as $message) +foreach ($messages as $message) { $var=!$var; print "";