Skip to content
Snippets Groups Projects
Commit c6e28ee7 authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Suppression des sorties ecran

parent a320dbb6
Branches main
No related tags found
No related merge requests found
...@@ -140,14 +140,14 @@ else ...@@ -140,14 +140,14 @@ else
print $db->error(); print $db->error();
} }
$file = $img_root . "/factures/ca_mensuel.png"; $file = $img_root . "/factures/ca_mensuel.png";
print "Graph $file\n"; if ($verbose) print "Graph $file\n";
$graph = new GraphBar ($db, $file); $graph = new GraphBar ($db, $file);
$graph->titre = "Chiffre d'affaire par mois en euros HT"; $graph->titre = "Chiffre d'affaire par mois en euros HT";
$graph->width = 440; $graph->width = 440;
$graph->GraphDraw($file, $cout_vente, $short_labels); $graph->GraphDraw($file, $cout_vente, $short_labels);
$file = $img_root . "/factures/facture_moyenne.png"; $file = $img_root . "/factures/facture_moyenne.png";
print "Graph $file\n"; if ($verbose) print "Graph $file\n";
$graph = new GraphBar ($db, $file, $labels); $graph = new GraphBar ($db, $file, $labels);
$graph->titre = "Facture moyenne"; $graph->titre = "Facture moyenne";
$graph->barcolor = "blue"; $graph->barcolor = "blue";
...@@ -155,14 +155,14 @@ $graph->width = 440; ...@@ -155,14 +155,14 @@ $graph->width = 440;
$graph->GraphDraw($file, $cout_vente_moyen, $short_labels); $graph->GraphDraw($file, $cout_vente_moyen, $short_labels);
$file = $img_root . "/factures/gain_mensuel.png"; $file = $img_root . "/factures/gain_mensuel.png";
print "Graph $file\n"; if ($verbose) print "Graph $file\n";
$graph = new GraphBar ($db, $file); $graph = new GraphBar ($db, $file);
$graph->titre = "Gain par mois en euros HT"; $graph->titre = "Gain par mois en euros HT";
$graph->width = 440; $graph->width = 440;
$graph->GraphDraw($file, $gain, $short_labels); $graph->GraphDraw($file, $gain, $short_labels);
$file = $img_root . "/factures/gain_moyen.png"; $file = $img_root . "/factures/gain_moyen.png";
print "Graph $file\n"; if ($verbose) print "Graph $file\n";
$graph = new GraphBar ($db, $file); $graph = new GraphBar ($db, $file);
$graph->titre = "Gain moyen par facture par mois"; $graph->titre = "Gain moyen par facture par mois";
$graph->width = 440; $graph->width = 440;
...@@ -170,7 +170,7 @@ $graph->barcolor = "blue"; ...@@ -170,7 +170,7 @@ $graph->barcolor = "blue";
$graph->GraphDraw($file, $gain_moyen, $short_labels); $graph->GraphDraw($file, $gain_moyen, $short_labels);
$file = $img_root . "/factures/nb_facture.png"; $file = $img_root . "/factures/nb_facture.png";
print "Graph $file\n"; if ($verbose) print "Graph $file\n";
$graph = new GraphBar ($db, $file); $graph = new GraphBar ($db, $file);
$graph->titre = "Nb de facture mois"; $graph->titre = "Nb de facture mois";
$graph->width = 440; $graph->width = 440;
...@@ -276,7 +276,6 @@ else ...@@ -276,7 +276,6 @@ else
print $db->error(); print $db->error();
} }
$i = 0; $i = 0;
foreach ($labels as $labl) foreach ($labels as $labl)
{ {
...@@ -288,8 +287,8 @@ foreach ($labels as $labl) ...@@ -288,8 +287,8 @@ foreach ($labels as $labl)
} }
$file = $img_root . "/factures/ca_mensuel_preleve.png"; $file = $img_root . "factures/ca_mensuel_preleve.png";
print "Graph $file\n";
$graph = new GraphBarAccumul ($db, $file); $graph = new GraphBarAccumul ($db, $file);
$graph->titre = "Chiffre d'affaire par mthode de rglement"; $graph->titre = "Chiffre d'affaire par mthode de rglement";
$graph->width = 640; $graph->width = 640;
...@@ -298,7 +297,7 @@ $graph->barcolor = "yellow"; ...@@ -298,7 +297,7 @@ $graph->barcolor = "yellow";
$xdatas[0] = array($cout_vente_prelev, $cout_vente_autre); $xdatas[0] = array($cout_vente_prelev, $cout_vente_autre);
$xdatas[1] = array($cout_achat); $xdatas[1] = array($cout_achat);
print_r($xdatas);
$graph->legend[0][0] = "Factures prleves"; $graph->legend[0][0] = "Factures prleves";
$graph->legend[0][1] = "Factures non-prleves"; $graph->legend[0][1] = "Factures non-prleves";
$graph->legend[1][0] = "Cot fournisseur"; $graph->legend[1][0] = "Cot fournisseur";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment