From d859f1ed8231961eaad405d04c62e44941558899 Mon Sep 17 00:00:00 2001 From: Taniya-eGov <103186387+Taniya-eGov@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:17:24 +0530 Subject: [PATCH] [ISTE-262] - Saving meter reading after taxperiod validation --- .../java/org/egov/wscalculation/service/MeterServicesImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/MeterServicesImpl.java b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/MeterServicesImpl.java index 492a0138c..22916abf2 100644 --- a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/MeterServicesImpl.java +++ b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/MeterServicesImpl.java @@ -57,10 +57,10 @@ public List createMeterReading(MeterConnectionRequest meterConnect } enrichmentService.enrichMeterReadingRequest(meterConnectionRequest); meterReadingsList.add(meterConnectionRequest.getMeterReading()); - wSCalculationDao.saveMeterReading(meterConnectionRequest); if (meterConnectionRequest.getMeterReading().getGenerateDemand()) { generateDemandForMeterReading(meterReadingsList, meterConnectionRequest.getRequestInfo()); } + wSCalculationDao.saveMeterReading(meterConnectionRequest); return meterReadingsList; }