Ajout mode verbose
This commit is contained in:
parent
718bd49044
commit
40caa407ae
@ -23,6 +23,14 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
require ("../../master.inc.php");
|
require ("../../master.inc.php");
|
||||||
|
$verbose = 0;
|
||||||
|
for ($i = 1 ; $i <= sizeof($argv) ; $i++)
|
||||||
|
{
|
||||||
|
if ($argv[$i] == "-v")
|
||||||
|
$verbose = 1;
|
||||||
|
if ($argv[$i] == "-vv")
|
||||||
|
$verbose = 2;
|
||||||
|
}
|
||||||
|
|
||||||
require_once (DOL_DOCUMENT_ROOT."/telephonie/lignetel.class.php");
|
require_once (DOL_DOCUMENT_ROOT."/telephonie/lignetel.class.php");
|
||||||
require_once (DOL_DOCUMENT_ROOT."/telephonie/facturetel.class.php");
|
require_once (DOL_DOCUMENT_ROOT."/telephonie/facturetel.class.php");
|
||||||
@ -87,7 +95,7 @@ if ($resql)
|
|||||||
/* Chiffre d'affaire mensuel */
|
/* Chiffre d'affaire mensuel */
|
||||||
|
|
||||||
$file = $img_root . "commercials/".$row[0]."/ca.mensuel.$year.png";
|
$file = $img_root . "commercials/".$row[0]."/ca.mensuel.$year.png";
|
||||||
if ($verbose) print "Graph : Lignes commandes$file\n";
|
if ($verbose) print "CA ".$row[0]."\n";
|
||||||
$graph = new GraphCommercialChiffreAffaire($db, $file, $year);
|
$graph = new GraphCommercialChiffreAffaire($db, $file, $year);
|
||||||
$graph->width = 400;
|
$graph->width = 400;
|
||||||
$graph->GraphMakeGraph($row[0]);
|
$graph->GraphMakeGraph($row[0]);
|
||||||
@ -95,7 +103,7 @@ if ($resql)
|
|||||||
/* Gain */
|
/* Gain */
|
||||||
|
|
||||||
$file = $img_root . "commercials/".$row[0]."/gain.mensuel.$year.png";
|
$file = $img_root . "commercials/".$row[0]."/gain.mensuel.$year.png";
|
||||||
if ($verbose) print "Graph : Lignes commandes$file\n";
|
if ($verbose) print "Gain ".$row[0]."\n";
|
||||||
$graph = new GraphCommercialGain($db, $file, $year);
|
$graph = new GraphCommercialGain($db, $file, $year);
|
||||||
$graph->width = 400;
|
$graph->width = 400;
|
||||||
$graph->GraphMakeGraph($row[0]);
|
$graph->GraphMakeGraph($row[0]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user