FINERACT-2050: Fix client transfer loan status transitioning to ACTIVE #5383
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes an issue where loans attached to a client remain in
TRANSFER_IN_PROGRESSstatus 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 toACTIVEstatus in the new branch.Changes
TRANSFER_IN_PROGRESStoACTIVE(for normal loans) andOVERPAID(for overpaid loans).LOAN_REPAYMENT_OR_WAIVERorLOAN_OVERPAYMENTevents, which occur during the client transfer acceptance process.TRANSFER_IN_PROGRESScorrectly transitions toACTIVEorOVERPAID.Testing
./gradlew spotlessApply spotbugsMain spotbugsTest checkstyleMain checkstyleTest.Related Issue
Fixes FINERACT-2050