Skip to content

Commit fd9f681

Browse files
committed
FINERACT-2521 Loan status is Active instead of Closed after pay-off re-amortized loan with equal interest split and fee charge
1 parent 84e2dde commit fd9f681

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanAccountDomainServiceJpa.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ public LoanTransaction makeRepayment(final LoanTransactionType repaymentTransact
276276
loanAccountService.saveLoanTransactionWithDataIntegrityViolationChecks(newRepaymentTransaction);
277277
loan = loanAccountService.saveAndFlushLoanWithDataIntegrityViolationChecks(loan);
278278

279+
// FIX: trigger loan lifecycle transition
280+
loanLifecycleStateMachine.determineAndTransition(loan, transactionDate);
281+
279282
if (StringUtils.isNotBlank(noteText)) {
280283
final Note note = Note.loanTransactionNote(loan, newRepaymentTransaction, noteText);
281284
this.noteRepository.save(note);

0 commit comments

Comments
 (0)