dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #14950
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5225: Minor fix
------------------------------------------------------------
revno: 5225
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-11-25 22:13:08 +0100
message:
Minor fix
modified:
dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/completeness/impl/AbstractDataSetCompletenessService.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-reporting/src/main/java/org/hisp/dhis/completeness/impl/AbstractDataSetCompletenessService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/completeness/impl/AbstractDataSetCompletenessService.java 2011-10-20 13:05:27 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/completeness/impl/AbstractDataSetCompletenessService.java 2011-11-25 21:13:08 +0000
@@ -285,21 +285,10 @@
final Collection<Integer> relevantSources = getRelevantSources( dataSet, children );
- final DataSetCompletenessResult result = new DataSetCompletenessResult();
-
- result.setSources( getSources( dataSet, relevantSources ) );
+ final DataSetCompletenessResult result = getDataSetCompleteness( period, deadline, unit, relevantSources, dataSet );
if ( result.getSources() > 0 )
{
- result.setName( unit.getName() );
- result.setRegistrations( getRegistrations( dataSet, relevantSources, period ) );
- result.setRegistrationsOnTime( deadline != null ? getRegistrationsOnTime( dataSet, relevantSources,
- period, deadline ) : 0 );
-
- result.setDataSetId( dataSetId );
- result.setPeriodId( periodId );
- result.setOrganisationUnitId( unit.getId() );
-
results.add( result );
}
}