FINERACT-2333: Accrual handling in case of Charged-off loan
This commit is contained in:
committed by
Adam Saghy
parent
843b27926e
commit
f0cc697c67
+1
@@ -591,6 +591,7 @@ public class LoanAccountChargeOffWithAdvancedPaymentAllocationTest extends BaseL
|
||||
verifyTransactions(loanId, //
|
||||
transaction(1000.0d, "Disbursement", "01 January 2024", 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, false), //
|
||||
transaction(170.09d, "Repayment", "15 January 2024", 832.54, 167.46, 2.63, 0.0, 0.0, 0.0, 0.0, false), //
|
||||
transaction(5.14d, "Accrual", "31 January 2024", 0.0, 0.0, 5.14, 0.0, 0.0, 0.0, 0.0, false), //
|
||||
transaction(835.05d, "Charge-off", "31 January 2024", 0.0, 832.54, 2.51, 0.0, 0.0, 0.0, 0.0, false) //
|
||||
);
|
||||
});
|
||||
|
||||
+2
-2
@@ -69,7 +69,7 @@ public class LoanChargeOffAccrualTest extends BaseLoanIntegrationTest {
|
||||
executeInlineCOB(loanId);
|
||||
final GetLoansLoanIdResponse loanDetails = loanTransactionHelper.getLoanDetails(loanId);
|
||||
final List<GetLoansLoanIdTransactions> transactions = loanDetails.getTransactions();
|
||||
Assertions.assertTrue(transactions.stream().filter(o -> o.getType().getAccrual()).toList().size() == 1);
|
||||
Assertions.assertTrue(transactions.stream().filter(o -> o.getType().getAccrual()).toList().size() == 2);
|
||||
});
|
||||
|
||||
runAt("05 June 2024", () -> {
|
||||
@@ -78,7 +78,7 @@ public class LoanChargeOffAccrualTest extends BaseLoanIntegrationTest {
|
||||
|
||||
final GetLoansLoanIdResponse loanDetails = loanTransactionHelper.getLoanDetails(loanId);
|
||||
final List<GetLoansLoanIdTransactions> transactions = loanDetails.getTransactions();
|
||||
Assertions.assertTrue(transactions.stream().filter(o -> o.getType().getAccrual()).toList().size() == 2);
|
||||
Assertions.assertTrue(transactions.stream().filter(o -> o.getType().getAccrual()).toList().size() == 3);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user