Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #947 from egovernments/ISTE-452
Browse files Browse the repository at this point in the history
removed billDate for update consumer
  • Loading branch information
debasishchakraborty-egovt authored Sep 13, 2024
2 parents 8c4c876 + 4b60131 commit 42f81d7
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -971,10 +971,10 @@ private List<Demand> updateDemandForCalculation(RequestInfo requestInfo, List<Ca
demandRes = demandRepository.updateDemand(requestInfo, demands);
finalDemandRes.addAll(demandRes);
List<String> billNumbers = fetchBill(demands, waterConnectionRequest.getRequestInfo());
Long billDate = fetchBillDate(demands,waterConnectionRequest.getRequestInfo());
billDate =billDate + 1296000000l;
LocalDate billDateLocal = Instant.ofEpochMilli(billDate).atZone(ZoneId.systemDefault()).toLocalDate();
String paymentDueDate = billDateLocal.format(dateTimeFormatter);
// Long billDate = fetchBillDate(demands,waterConnectionRequest.getRequestInfo());
// billDate =billDate + 1296000000l;
// LocalDate billDateLocal = Instant.ofEpochMilli(billDate).atZone(ZoneId.systemDefault()).toLocalDate();
// String paymentDueDate = billDateLocal.format(dateTimeFormatter);
/*if(isOnlinePaymentAllowed(requestInfo,tenantId)) {
if(fetchTotalBillAmount(demands,requestInfo).signum()> 0) {
sendPaymentSMSNotification(requestInfo,tenantId,owner,waterConnectionRequest,property,demandDetails,calculation.getConnectionNo(),demands,true,businessService,billCycle,billNumbers,paymentDueDate);
Expand Down Expand Up @@ -1326,7 +1326,10 @@ public Long fetchBillDate(List<Demand> demandResponse, RequestInfo requestInfo)
log.error("Fetch Bill Error", ex);
}
}
return billDate.get(0);
if(!CollectionUtils.isEmpty(billDate))
return billDate.get(0);
else
return null;
}

/**
Expand Down

0 comments on commit 42f81d7

Please sign in to comment.