FINERACT-1971: Delinquency evaluation should be happen only for Active Loans
This commit is contained in:
committed by
Adam Saghy
parent
189b94bd19
commit
e169b5cd61
+5
@@ -126,6 +126,11 @@ public class DelinquencyReadPlatformServiceImpl implements DelinquencyReadPlatfo
|
||||
if (optLoan.isPresent()) {
|
||||
final Loan loan = optLoan.get();
|
||||
|
||||
// If the Loan is not Active yet, return template data
|
||||
if (loan.isSubmittedAndPendingApproval() || loan.isApproved()) {
|
||||
return CollectionData.template();
|
||||
}
|
||||
|
||||
final List<LoanDelinquencyAction> savedDelinquencyList = retrieveLoanDelinquencyActions(loanId);
|
||||
List<LoanDelinquencyActionData> effectiveDelinquencyList = delinquencyEffectivePauseHelper
|
||||
.calculateEffectiveDelinquencyList(savedDelinquencyList);
|
||||
|
||||
Reference in New Issue
Block a user