dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #01423
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 426: Fixed bug related to default reporting period in report table.
------------------------------------------------------------
revno: 426
committer: Lars Helge Oeverland larshelge@xxxxxxxxx
branch nick: trunk
timestamp: Tue 2009-07-07 19:11:07 +0200
message:
Fixed bug related to default reporting period in report table.
modified:
dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.java
=== modified file 'dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.java 2009-06-19 13:23:57 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.java 2009-07-07 17:11:07 +0000
@@ -171,13 +171,15 @@
date = getDateFromPreviousMonth( reportingPeriod );
- log.info( "Reporting period: " + reportingPeriod );
+ log.info( "Reporting period date from report param: " + date );
}
else
{
- reportTable.setRelativePeriods( getRelativePeriods( reportTable.getRelatives(), -1 ) );
-
- date = getDateFromPreviousMonth( -1 );
+ reportTable.setRelativePeriods( getRelativePeriods( reportTable.getRelatives(), 1 ) );
+
+ date = getDateFromPreviousMonth( 1 );
+
+ log.info( "Reporting period date default: " + date );
}
String reportingMonthName = format.formatPeriod( new MonthlyPeriodType().createPeriod( date ) );
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.