← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2558: Rounded factor in indicator datamart export

 

------------------------------------------------------------
revno: 2558
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-01-13 14:27:54 +0100
message:
  Rounded factor in indicator datamart export
modified:
  dhis-2/dhis-services/dhis-service-datamart-default/src/main/java/org/hisp/dhis/datamart/indicator/DefaultIndicatorDataMart.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-datamart-default/src/main/java/org/hisp/dhis/datamart/indicator/DefaultIndicatorDataMart.java'
--- dhis-2/dhis-services/dhis-service-datamart-default/src/main/java/org/hisp/dhis/datamart/indicator/DefaultIndicatorDataMart.java	2011-01-10 15:53:32 +0000
+++ dhis-2/dhis-services/dhis-service-datamart-default/src/main/java/org/hisp/dhis/datamart/indicator/DefaultIndicatorDataMart.java	2011-01-13 13:27:54 +0000
@@ -187,7 +187,7 @@
                         indicatorValue.setOrganisationUnitId( unit.getId() );
                         indicatorValue.setLevel( level );
                         indicatorValue.setAnnualized( getAnnualizationString( indicator.getAnnualized() ) );
-                        indicatorValue.setFactor( annualizedFactor );
+                        indicatorValue.setFactor( getRounded( annualizedFactor, DECIMALS ) );
                         indicatorValue.setValue( getRounded( aggregatedValue, DECIMALS ) );
                         indicatorValue.setNumeratorValue( getRounded( numeratorValue, DECIMALS ) );
                         indicatorValue.setDenominatorValue( getRounded( denominatorValue, DECIMALS ) );