ruchiD commented on code in PR #3515:
URL: https://github.com/apache/fineract/pull/3515#discussion_r1373537985


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/service/DelinquencyReadPlatformServiceImpl.java:
##########
@@ -126,4 +133,18 @@ public CollectionData calculateLoanCollectionData(final 
Long loanId) {
         return collectionData;
     }
 
+    @Override
+    public Collection<LoanInstallmentDelinquencyTagData> 
retrieveLoanInstallmentsCurrentDelinquencyTag(Long loanId) {
+
+        List<LoanInstallmentDelinquencyTagData> 
loanInstallmentsDelinquencyData = new ArrayList<>();
+        List<LoanInstallmentDelinquencyTag> loanInstallmentsCurrentDelinquency 
= repositoryLoanInstallmentDelinquencyTag
+                .findByLoanId(loanId);
+        for (LoanInstallmentDelinquencyTag installmentDelinquencyTag : 
loanInstallmentsCurrentDelinquency) {

Review Comment:
   done. Fetching only Delinquency Range and  outstanding amount for 
installments



##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/service/DelinquencyWritePlatformServiceImpl.java:
##########
@@ -382,4 +408,96 @@ public int compare(DelinquencyRange o1, DelinquencyRange 
o2) {
         return ranges;
     }
 
+    private void applyDelinquencyDetailsForLoanInstallments(final Loan loan, 
final DelinquencyBucket delinquencyBucket,
+            final Map<Long, CollectionData> installmentsCollectionData) {
+        for (Map.Entry<Long, CollectionData> installmentCollectionData : 
installmentsCollectionData.entrySet()) {
+            Optional<LoanRepaymentScheduleInstallment> installment = 
loan.getRepaymentScheduleInstallments().stream()

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to