Skip to content
Browse files

MIFOS-5657: proper format of amount value.

  • Loading branch information...
1 parent 4a9a893 commit 9d2ff7a79269e75c640f587731f19a4700d7241f @mdudzinski mdudzinski committed Jul 24, 2012
View
5 ...ion/util/helpers/RoleTempleteBuilder.java → ...ion/util/helpers/RoleTempleteBuilder.java
@@ -34,6 +34,8 @@
import org.mifos.application.master.MessageLookup;
import org.mifos.application.servicefacade.ApplicationContextProvider;
import org.mifos.dto.domain.ActivityRestrictionDto;
+import org.mifos.framework.util.helpers.ConversionUtil;
+import org.mifos.framework.util.helpers.Money;
import org.mifos.security.rolesandpermission.business.ActivityEntity;
import org.mifos.security.rolesandpermission.business.ActivityRestrictionTypeEntity;
import org.slf4j.Logger;
@@ -246,7 +248,8 @@ private void makeActivityRestrictionRow(Set<ActivityRestrictionTypeEntity> activ
ActivityRestrictionDto activityRestrictionDto = activityRestrictionDtoMap.get(activityRestrictionType.getId());
String activityRestrictionValue = "";
if ( activityRestrictionDto != null){
- activityRestrictionValue = "" + activityRestrictionDto.getAmountValue().doubleValue();
+ Money amount = new Money(Money.getDefaultCurrency(), activityRestrictionDto.getAmountValue());
+ activityRestrictionValue = ConversionUtil.formatNumber(amount.toString());
}
String activityRestrictionTypeDescription = ApplicationContextProvider.getBean(MessageLookup.class).lookup(activityRestrictionType.getLookUpValue());
String checked = "";

0 comments on commit 9d2ff7a

Please sign in to comment.
Something went wrong with that request. Please try again.