adamsaghy commented on code in PR #5605:
URL: https://github.com/apache/fineract/pull/5605#discussion_r2916855381
##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/transactionprocessor/impl/AdvancedPaymentScheduleTransactionProcessor.java:
##########
@@ -3261,7 +3262,15 @@ private void handleReAge(LoanTransaction
loanTransaction, TransactionCtx ctx) {
}
}
} else {
- handleReAgeWithCommonStrategy(loanTransaction, new
CommonReAgeSettings(), ctx);
+ CommonReAgeSettings settings = switch
(loanReAgeParameter.getInterestHandlingType()) {
+ case
LoanReAgeInterestHandlingType.EQUAL_AMORTIZATION_FULL_INTEREST -> new
CommonReAgeSettings(false, true, true, true);
+
+ case
LoanReAgeInterestHandlingType.EQUAL_AMORTIZATION_PAYABLE_INTEREST -> new
CommonReAgeSettings(true, true, true, true);
+ case null -> new CommonReAgeSettings();
+ case LoanReAgeInterestHandlingType.DEFAULT -> new
CommonReAgeSettings();
Review Comment:
A little weird order, no?
--
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]