diff --git a/htdocs/compta/bank/graph.php b/htdocs/compta/bank/graph.php index cacf2ebcc9b..042fa3c422d 100644 --- a/htdocs/compta/bank/graph.php +++ b/htdocs/compta/bank/graph.php @@ -45,16 +45,16 @@ if ($account > 0) $acct = new Account($db); $acct->fetch($account); - print_fiche_titre("Journal de trésorerie du compte : " .$acct->label,$mesg); + print_fiche_titre("Journal de trésorerie du compte: " .$acct->getNomUrl(0),$mesg); print '
| ';
$file = "solde.$account.$year.png";
/* Bug
- if (! file_exists($file))
+ if (! file_exists($conf->$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 "Pour générer ou regénérer les graphiques, lancer le script ./scripts/banque/graph-solde.php en ligne de commande. "; print ' '; } else diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php index 6c767228bf2..6eeb6d3bcc4 100644 --- a/htdocs/compta/bank/search.php +++ b/htdocs/compta/bank/search.php @@ -166,9 +166,14 @@ if ($result) $var=!$var; print " | |||
| ".dolibarr_print_date($objp->do,"%d %b %y")." | \n"; + print ''.dolibarr_print_date($objp->do,"%d %b %y")." | \n"; - print "rowid&account=$objp->fk_account\">$objp->label "; + print " | rowid&account=$objp->fk_account\">"; + $reg=array(); + eregi('\((.+)\)',$objp->label,$reg); // Si texte entouré de parenthče on tente recherche de traduction + if ($reg[1] && $langs->trans($reg[1])!=$reg[1]) print $langs->trans($reg[1]); + else print $objp->label; + print " "; if ($objp->amount < 0) { |