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

Commit

Permalink
removed billDate for update consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
Taniya1493 committed Sep 12, 2024
1 parent b087198 commit 4b60131
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 4b60131

Please sign in to comment.