Bugfix
This commit is contained in:
parent
a83f776ff7
commit
8e13696788
@ -165,14 +165,14 @@ else
|
|||||||
{
|
{
|
||||||
print $db->error();
|
print $db->error();
|
||||||
}
|
}
|
||||||
$file = $img_root . "/factures/ca_mensuel.png";
|
$file = $img_root . "/factures/ca_mensuel.$year.png";
|
||||||
if ($verbose) 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.$year.png";
|
||||||
if ($verbose) 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";
|
||||||
|
|||||||
@ -67,7 +67,7 @@ print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
|||||||
|
|
||||||
print '<tr><td valign="top" width="50%">';
|
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">';
|
print '</td><td align="left" valign="top">';
|
||||||
_legend($db, "factures.ca_mensuel", "%11.2f");
|
_legend($db, "factures.ca_mensuel", "%11.2f");
|
||||||
@ -75,7 +75,7 @@ _legend($db, "factures.ca_mensuel", "%11.2f");
|
|||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
print '<tr><td valign="top" width="50%">';
|
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">';
|
print '</td><td align="left" valign="top">';
|
||||||
_legend($db, "factures.facture_moyenne","%01.1f");
|
_legend($db, "factures.facture_moyenne","%01.1f");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user