From e8c6b0f37e70c047e3602ea727a3dd5180920f2b Mon Sep 17 00:00:00 2001 From: debasishchakraborty-egovt Date: Fri, 14 Jun 2024 20:00:46 +0530 Subject: [PATCH] Added chnages for penalty --- .../src/main/java/org/egov/demand/service/DemandService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business-services/billing-service/src/main/java/org/egov/demand/service/DemandService.java b/business-services/billing-service/src/main/java/org/egov/demand/service/DemandService.java index db0fa4fad..49b795ca4 100644 --- a/business-services/billing-service/src/main/java/org/egov/demand/service/DemandService.java +++ b/business-services/billing-service/src/main/java/org/egov/demand/service/DemandService.java @@ -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"); }