You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by "abraham-menyhart (via GitHub)" <gi...@apache.org> on 2023/07/05 09:13:18 UTC

[GitHub] [fineract] abraham-menyhart commented on a diff in pull request #3286: FINERACT-1724: Approval limit calculation modification

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: commits-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org