airajena commented on code in PR #5383:
URL: https://github.com/apache/fineract/pull/5383#discussion_r2727968779


##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/DefaultLoanLifecycleStateMachine.java:
##########
@@ -154,7 +154,8 @@ private LoanStatus getNextStatus(LoanEvent loanEvent, Loan 
loan) {
             break;
             case LOAN_CHARGE_PAYMENT:
             case LOAN_REPAYMENT_OR_WAIVER, LOAN_CHARGEBACK:
-                if (anyOfAllowedWhenComingFrom(from, 
LoanStatus.CLOSED_OBLIGATIONS_MET, LoanStatus.OVERPAID)) {
+                if (anyOfAllowedWhenComingFrom(from, 
LoanStatus.CLOSED_OBLIGATIONS_MET, LoanStatus.OVERPAID,

Review Comment:
   Yes, so in FINERACT-2050 ticket, there's a video attached to it where loans 
attached to a client remain in TRANSFER_IN_PROGRESS status after the client is 
successfully transferred to a new branch and the transfer is accepted. Since 
the loan was active in the previous branch, it should return to ACTIVE status 
in the new branch. These changes are for that state transition fix. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to