From f9ef9de6c1760d3caeb31f08d0a16e20ecd357f3 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Thu, 6 Aug 2009 10:03:25 +0200 Subject: [PATCH] (bug #3512) fix acquisition reports and group by This fix, just change a grep value that make different way to calculate the table depending on the choosen column and line. Signed-off-by: Henri-Damien LAURENT --- reports/acquisitions_stats.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reports/acquisitions_stats.pl b/reports/acquisitions_stats.pl index ef827ca0b8..1ce99fff24 100755 --- a/reports/acquisitions_stats.pl +++ b/reports/acquisitions_stats.pl @@ -478,17 +478,17 @@ sub calculate { $colfield .= "Year($column)"; } - elsif ( ( $column =~ /deliverydate/ ) and ( $rodsp == 1 ) ) { + elsif ( ( $column =~ /received/ ) and ( $rodsp == 1 ) ) { #Display by day $colfield .= "dayname($column)"; } - elsif ( ( $column =~ /deliverydate/ ) and ( $rodsp == 2 ) ) { + elsif ( ( $column =~ /received/ ) and ( $rodsp == 2 ) ) { #Display by Month $colfield .= "monthname($column)"; } - elsif ( ( $column =~ /deliverydate/ ) and ( $rodsp == 3 ) ) { + elsif ( ( $column =~ /received/ ) and ( $rodsp == 3 ) ) { #Display by Year $colfield .= "Year($column)"; -- 2.20.1