This commit is contained in:
Rodolphe Quiedeville 2006-01-11 11:28:27 +00:00
parent a83f776ff7
commit 8e13696788
2 changed files with 4 additions and 4 deletions

View File

@ -165,14 +165,14 @@ else
{
print $db->error();
}
$file = $img_root . "/factures/ca_mensuel.png";
$file = $img_root . "/factures/ca_mensuel.$year.png";
if ($verbose) print "Graph $file\n";
$graph = new GraphBar ($db, $file);
$graph->titre = "Chiffre d'affaire par mois en euros HT";
$graph->width = 440;
$graph->GraphDraw($file, $cout_vente, $short_labels);
$file = $img_root . "/factures/facture_moyenne.png";
$file = $img_root . "/factures/facture_moyenne.$year.png";
if ($verbose) print "Graph $file\n";
$graph = new GraphBar ($db, $file, $labels);
$graph->titre = "Facture moyenne";

View File

@ -67,7 +67,7 @@ print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr><td valign="top" width="50%">';
print '<img src="'.DOL_URL_ROOT.'/showgraph.php?graph='.DOL_DATA_ROOT.'/graph/telephonie/factures/ca_mensuel.png" alt="ca_mensuel">';
print '<img src="'.DOL_URL_ROOT.'/showgraph.php?graph='.DOL_DATA_ROOT.'/graph/telephonie/factures/ca_mensuel.'.$year.'.png" alt="ca_mensuel">';
print '</td><td align="left" valign="top">';
_legend($db, "factures.ca_mensuel", "%11.2f");
@ -75,7 +75,7 @@ _legend($db, "factures.ca_mensuel", "%11.2f");
print "</td></tr>\n";
print '<tr><td valign="top" width="50%">';
print '<img src="'.DOL_URL_ROOT.'/showgraph.php?graph='.DOL_DATA_ROOT.'/graph/telephonie/factures/facture_moyenne.png" alt="facture_moyenne">';
print '<img src="'.DOL_URL_ROOT.'/showgraph.php?graph='.DOL_DATA_ROOT.'/graph/telephonie/factures/facture_moyenne.'.$year.'.png" alt="facture_moyenne">';
print '</td><td align="left" valign="top">';
_legend($db, "factures.facture_moyenne","%01.1f");