This is an automated email from the ASF dual-hosted git repository.

arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4ebff33792 FINERACT-2421: No interest, no interest accrual calculation 
needed
4ebff33792 is described below

commit 4ebff33792d39ba9966d0702fffcf29fda337bd9
Author: Adam Saghy <[email protected]>
AuthorDate: Fri Jan 23 11:37:33 2026 +0100

    FINERACT-2421: No interest, no interest accrual calculation needed
---
 .../loanaccount/service/LoanAccrualsProcessingServiceImpl.java        | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanAccrualsProcessingServiceImpl.java
 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanAccrualsProcessingServiceImpl.java
index 3f5205e9e1..b319daecc1 100644
--- 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanAccrualsProcessingServiceImpl.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanAccrualsProcessingServiceImpl.java
@@ -470,6 +470,10 @@ public class LoanAccrualsProcessingServiceImpl implements 
LoanAccrualsProcessing
     private void addInterestAccrual(@NonNull final Loan loan, @NonNull final 
LocalDate tillDate,
             final LoanScheduleGenerator scheduleGenerator, @NonNull final 
LoanRepaymentScheduleInstallment installment,
             @NonNull final AccrualPeriodsData accrualPeriods) {
+        // No interest, no need for calculations
+        if (!loan.isInterestBearing()) {
+            return;
+        }
         final LoanTransaction reAgeTransaction = loan.findReAgeTransaction();
         final LoanReAgeParameter loanReAgeParameter = reAgeTransaction != null 
? reAgeTransaction.getLoanReAgeParameter() : null;
 

Reply via email to