[Koha-patches] [PATCH] (bug #3512) fix acquisition reports and group by
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Wed Aug 26 01:44:35 CEST 2009
From: Nahuel ANGELINETTI <nahuel.angelinetti at biblibre.com>
This fix, just change a grep value that make different way to calculate the table depending on the choosen column and line.
---
reports/acquisitions_stats.pl | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/reports/acquisitions_stats.pl b/reports/acquisitions_stats.pl
index ef827ca..1ce99ff 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)";
--
1.6.0.4
More information about the Koha-patches
mailing list