From 6900598197a85a0853db4c2ff13692ace2fe7c18 Mon Sep 17 00:00:00 2001 From: snehal-gothe Date: Wed, 26 Apr 2023 12:57:50 +0530 Subject: [PATCH] pdf fixes --- .../java/org/egov/wscalculation/service/DemandService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }