FINERACT-2210: Incorrect accounting of reversed charge-off transaction.

This commit is contained in:
mariiaKraievska
2025-04-01 10:01:13 +02:00
committed by Adam Saghy
parent b7ba9bd570
commit 957666df18
12 changed files with 578 additions and 481 deletions
@@ -99,12 +99,11 @@ class CreateJournalEntriesForChargeOffLoanTest {
verify(helper, times(1)).getChargeOffMappingByCodeValue(1L, PortfolioProductType.LOAN, chargeOffReasonId);
verify(helper, times(1)).getLinkedGLAccountForLoanProduct(1L, AccrualAccountsForLoan.LOAN_PORTFOLIO.getValue(), 1L);
verify(helper, times(1)).createCreditJournalEntryOrReversalForLoan(helper.getOfficeById(1L), "USD",
AccrualAccountsForLoan.LOAN_PORTFOLIO, 1L, null, 1L, "txn-123", LocalDate.now(ZoneId.systemDefault()),
new BigDecimal("500.00"), false);
verify(helper, times(1)).createDebitJournalEntryOrReversalForLoan(helper.getOfficeById(1L), "USD",
verify(helper, times(1)).createCreditJournalEntryForLoan(helper.getOfficeById(1L), "USD", AccrualAccountsForLoan.LOAN_PORTFOLIO, 1L,
null, 1L, "txn-123", LocalDate.now(ZoneId.systemDefault()), new BigDecimal("500.00"));
verify(helper, times(1)).createDebitJournalEntryForLoan(helper.getOfficeById(1L), "USD",
AccrualAccountsForLoan.CHARGE_OFF_EXPENSE.getValue(), 1L, null, 1L, "txn-123", LocalDate.now(ZoneId.systemDefault()),
new BigDecimal("500.00"), false);
new BigDecimal("500.00"));
}
@Test