adamsaghy commented on code in PR #5102:
URL: https://github.com/apache/fineract/pull/5102#discussion_r2490165060
##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/transactionprocessor/impl/AdvancedPaymentScheduleTransactionProcessor.java:
##########
@@ -3281,12 +3257,152 @@ private static class
HorizontalPaymentAllocationContext implements LoopContext {
private boolean isInterestRecalculationSupported(TransactionCtx ctx, Loan
loan) {
if (ctx instanceof ProgressiveTransactionCtx
progressiveTransactionCtx) {
return loan.isInterestBearingAndInterestRecalculationEnabled() &&
!progressiveTransactionCtx.isChargedOff()
- && !progressiveTransactionCtx.isWrittenOff() &&
!progressiveTransactionCtx.isContractTerminated();
+ && !progressiveTransactionCtx.isWrittenOff() &&
!progressiveTransactionCtx.isContractTerminated()
+ &&
keepUsingEmiCalculatorBasedOnReAge(progressiveTransactionCtx);
} else {
return false;
}
}
+ private void handleReAgeWithCommonStrategy(LoanTransaction
loanTransaction, CommonReAgeSettings settings, TransactionCtx ctx) {
Review Comment:
This should be part of the calculator and the model, not the transaction
processor.
--
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]