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 e292bbe14..7d717c049 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 @@ -545,6 +545,7 @@ public DemandHistory getDemandHistory(@Valid DemandCriteria demandCriteria, Requ subtract(demList.get(demList.size() - 1).getDemandDetails().get(0).getCollectionAmount()); } + demands.stream().filter(i->i.getStatus().equals(Demand.StatusEnum.ACTIVE)); DemandHistory demandHistory = new DemandHistory(); demandHistory.setDemandList(demands); demandHistory.setWaterCharge(waterCharge);