Skip to content

Commit

Permalink
Merge pull request #816 from egovernments/RoundOffPenalty
Browse files Browse the repository at this point in the history
Added chnages for penalty
  • Loading branch information
debasishchakraborty-egovt authored Jun 14, 2024
2 parents 511cb08 + e8c6b0f commit 1d8c2ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ public AggregatedDemandDetailResponse getAllDemands(DemandCriteria demandCriteri
Integer rate = (Integer) paymentMasterData.get("rate");
String penaltyType = String.valueOf(paymentMasterData.get("type"));
totalApplicablePenalty = currentmonthBill.multiply(new BigDecimal(rate).divide(new BigDecimal(100)));
totalApplicablePenalty = totalApplicablePenalty.setScale(0, RoundingMode.CEILING);
totalApplicablePenalty = totalApplicablePenalty.setScale(0, RoundingMode.HALF_UP);
} else {
log.info("MDMS data is Null Penalty not connfigured");
}
Expand Down

0 comments on commit 1d8c2ae

Please sign in to comment.