FINERACT-2210: Incorrect accounting of reversed charge-off transaction.
This commit is contained in:
committed by
Adam Saghy
parent
b7ba9bd570
commit
957666df18
+4
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user