diff --git a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/DemandService.java b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/DemandService.java index e4e2b6dc2..4bc434041 100644 --- a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/DemandService.java +++ b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/DemandService.java @@ -1203,7 +1203,9 @@ public DemandPenaltyResponse getPenaltyDetails(@Valid GetBillCriteria getBillCri } } } - DemandPenaltyResponse response = DemandPenaltyResponse.builder().totalApplicablePenalty(totalApplicablePenalty).demands(demands).build(); + demands.stream().filter(i->i.getStatus().equals(Demand.StatusEnum.ACTIVE)); + DemandPenaltyResponse response = DemandPenaltyResponse.builder().totalApplicablePenalty(totalApplicablePenalty). + demands(demands).build(); return response; }