diff --git a/htdocs/compta/bank/graph.php b/htdocs/compta/bank/graph.php index 3aa138d4a89..cacf2ebcc9b 100644 --- a/htdocs/compta/bank/graph.php +++ b/htdocs/compta/bank/graph.php @@ -37,6 +37,7 @@ $account = $_GET["id"]; if ($account > 0) { + $datetime = time(); $month = strftime("%m", $datetime); $year = strftime("%Y", $datetime); @@ -46,27 +47,35 @@ if ($account > 0) print_fiche_titre("Journal de trésorerie du compte : " .$acct->label,$mesg); - print '
| ';
-
$file = "solde.$account.$year.png";
+
+ /* Bug
if (! file_exists($file))
- {
- print "Pour générer ou regénérer les graphiques, lancer le script scripts/banque/graph-solde.php en ligne de commande. "; - print ' '; - } + { + print "Pour générer ou regénérer les graphiques, lancer le script scripts/banque/graph-solde.php en ligne de commande. "; + print ' '; + } else - { + { print ' |
| ';
+
+ $file = "mouvement.$account.$year.png";
+
+ print ' |
| ';
$file = "solde.$account.png";
print ' |