abraham-menyhart commented on code in PR #3286:
URL: https://github.com/apache/fineract/pull/3286#discussion_r1252803338


##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java:
##########
@@ -2668,8 +2668,11 @@ private void 
compareDisbursedToApprovedOrProposedPrincipal(BigDecimal disbursedA
 
         if (this.loanProduct().isDisallowExpectedDisbursements() && 
this.loanProduct().isAllowApprovedDisbursedAmountsOverApplied()) {
             BigDecimal maxDisbursedAmount = getOverAppliedMax();
-            if (disbursedAmount.compareTo(maxDisbursedAmount) > 0) {
-                final String errorMessage = "Loan disbursal amount can't be 
greater than maximum applied loan amount calculation.";
+            if (totalDisbursed.compareTo(maxDisbursedAmount) > 0) {

Review Comment:
   Yes, I just double checked it, and it does contain the newly disbursed 
amount as well.



-- 
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]

Reply via email to