diff --git a/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationChecklistWritePlatformServiceImpl.java b/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationChecklistWritePlatformServiceImpl.java index f9d155e7fd9..6cce442d3c1 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationChecklistWritePlatformServiceImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationChecklistWritePlatformServiceImpl.java @@ -1212,7 +1212,7 @@ SELECT COUNT(ml.id) AS totalCount BigDecimal membersPercentage = BigDecimal.valueOf(100L); if (numberOfMembers != null && numberOfMembers < Long.valueOf(totalMembers)) { membersPercentage = BigDecimal.valueOf(100L) - .multiply(BigDecimal.valueOf(numberOfMembers).divide(BigDecimal.valueOf(totalMembers), MoneyHelper.getRoundingMode())); + .multiply(BigDecimal.valueOf(numberOfMembers).divide(BigDecimal.valueOf(totalMembers),2, MoneyHelper.getRoundingMode())); } reportParams.put("${membersPercentage}", String.valueOf(membersPercentage)); final GenericResultsetData result = this.readReportingService.retrieveGenericResultset(reportName, "report", reportParams, false); diff --git a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0133_UpdateNewHardPolicyQueries.xml b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0133_UpdateNewHardPolicyQueries.xml index 03bb6358703..8748eaa9121 100644 --- a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0133_UpdateNewHardPolicyQueries.xml +++ b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0133_UpdateNewHardPolicyQueries.xml @@ -1155,6 +1155,18 @@ ]]> + + + + +