From 395f3d35ad2977c2bc552d9707360aaaf0c3819d Mon Sep 17 00:00:00 2001 From: Cerdic Date: Sat, 15 Aug 2015 09:29:27 +0200 Subject: [PATCH] bugfix reporting mensuel au dela d'un an --- genie/bank_daily_reporting.php | 2 +- paquet.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/genie/bank_daily_reporting.php b/genie/bank_daily_reporting.php index d2862534..4d40301b 100644 --- a/genie/bank_daily_reporting.php +++ b/genie/bank_daily_reporting.php @@ -55,7 +55,7 @@ function genie_bank_daily_reporting_dist($t){ 'date_paiement,sum(montant_ht) as total_ht,sum(montant) as total,count(id_transaction) as nb', 'spip_transactions', 'statut='.sql_quote('ok').' AND date_paiement>='.sql_quote($jm365), - 'MONTH(date_paiement)','date_paiement DESC' + "DATE_FORMAT(date_paiement,'%Y-%m')",'date_paiement DESC' ); $lignes = ""; foreach($mois as $moi){ diff --git a/paquet.xml b/paquet.xml index 800834d2..eb56577f 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@