dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21430
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10146: Minor fix.
------------------------------------------------------------
revno: 10146
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-03-11 23:36:56 +0700
message:
Minor fix.
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramStageInstanceService.java
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateStatisticalProgramReportAction.java
--
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
=== modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramStageInstanceService.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramStageInstanceService.java 2013-03-11 16:07:20 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramStageInstanceService.java 2013-03-11 16:36:56 +0000
@@ -336,11 +336,12 @@
// Total programs completed in this period
+ int totalDiscontinued = programInstanceService.countUnenrollment( program, orgunitIds, startDate, endDate );
int totalCompleted = programInstanceService.countProgramInstances( program, orgunitIds, startDate, endDate,
true );
grid.addRow();
grid.addValue( i18n.getString( "total_programs_completed_in_this_period" ) );
- grid.addValue( totalCompleted );
+ grid.addValue( totalCompleted - totalDiscontinued );
grid.addValue( "" );
grid.addValue( "" );
grid.addValue( "" );
@@ -350,7 +351,6 @@
// Total programs discontinued (un-enrollments)
- int totalDiscontinued = programInstanceService.countUnenrollment( program, orgunitIds, startDate, endDate );
grid.addRow();
grid.addValue( i18n.getString( "total_programs_discontinued_unenrollments" ) );
grid.addValue( totalDiscontinued );
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateStatisticalProgramReportAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateStatisticalProgramReportAction.java 2013-03-08 08:47:35 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateStatisticalProgramReportAction.java 2013-03-11 16:36:56 +0000
@@ -28,7 +28,6 @@
package org.hisp.dhis.caseentry.action.report;
import java.util.ArrayList;
-import java.util.Calendar;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;