FINERACT-2060: Accrual reverse replay logic and Handling
This commit is contained in:
committed by
Adam Saghy
parent
8d25b0c765
commit
d57e72ec2f
+1
-1
@@ -41,7 +41,7 @@ public class ExternalAssetOwnerLoanStatusChangePlatformServiceImpl implements Ex
|
||||
businessEventNotifierService.addPostBusinessEventListener(LoanStatusChangedBusinessEvent.class, event -> {
|
||||
final Loan loan = event.get();
|
||||
if (configurationReadPlatformService.retrieveGlobalConfiguration(ASSET_EXTERNALIZATION_OF_NON_ACTIVE_LOANS).isEnabled()
|
||||
&& (loan.isClosed() || loan.getStatus().isOverpaid())) {
|
||||
&& (event.getOldStatus().isActive() && (loan.isClosed() || loan.getStatus().isOverpaid()))) {
|
||||
loanAccountOwnerTransferService.handleLoanClosedOrOverpaid(loan);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user