diff --git a/htdocs/compta/caisse/annuel.php b/htdocs/compta/caisse/annuel.php
index 6c33cbe36d7..ef020a78e26 100644
--- a/htdocs/compta/caisse/annuel.php
+++ b/htdocs/compta/caisse/annuel.php
@@ -103,7 +103,7 @@ else
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
{
- print '
';
- print "| ".strftime("%B",mktime(1,1,1,$mois,1,$annee))." | ";
+ print "".strftime("%B",mktime(1,1,1,$mois,1,$annee))." | ";
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
{
print ' ';
diff --git a/htdocs/compta/caisse/index.php b/htdocs/compta/caisse/index.php
index fcf3b046ca2..e4f6311a162 100644
--- a/htdocs/compta/caisse/index.php
+++ b/htdocs/compta/caisse/index.php
@@ -28,8 +28,8 @@ require("./pre.inc.php");
llxHeader();
-$mois=$_GET["mois"];
-$annee=$_GET["annee"];
+$mois=$_GET["month"];
+$annee=$_GET["year"];
/*
* Sécurité accés client
@@ -41,8 +41,9 @@ if ($user->societe_id > 0)
if (!$mois)
{
- $mois = strftime("%m", time());
+ $mois = strftime("%m", time());
}
+if ($mois == 'all') { $mois=0; }
if (!$annee)
{
|