alberto-art3ch commented on code in PR #4877:
URL: https://github.com/apache/fineract/pull/4877#discussion_r2222421610
##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/service/ProgressiveLoanTransactionValidatorImpl.java:
##########
@@ -137,7 +137,7 @@ public void validateCapitalizedIncome(final JsonCommand
command, final Long loan
final BigDecimal newTotal =
totalDisbursed.add(capitalizedIncome).add(transactionAmount);
if
(loan.loanProduct().isAllowApprovedDisbursedAmountsOverApplied()) {
- final BigDecimal maxAppliedAmount =
getOverAppliedMax(loan);
+ final BigDecimal maxAppliedAmount =
loanMaximumAmountValidator.getOverAppliedMax(loan);
if (newTotal.compareTo(maxAppliedAmount) > 0) {
baseDataValidator.reset().parameter("transactionAmount").failWithCode("exceeds.approved.amount",
Review Comment:
I don't know, this is a part of legacy code, I've just change from the local
method to the other class
--
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]