fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vorbur...@apache.org
Subject [fineract] branch develop updated: FINERACT-111 Do not update charges amount paid if loan transaction is accruals
Date Sun, 26 Apr 2020 10:32:39 GMT
This is an automated email from the ASF dual-hosted git repository.

vorburger 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 c623287  FINERACT-111 Do not update charges amount paid if loan transaction is accruals
c623287 is described below

commit c62328756b32616d065ba75da8fda468ac6d9442
Author: thesmallstar <manthan.surkar@gmail.com>
AuthorDate: Mon Mar 23 23:53:57 2020 +0530

    FINERACT-111 Do not update charges amount paid if loan transaction is accruals
---
 .../AbstractLoanRepaymentScheduleTransactionProcessor.java              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/transactionprocessor/AbstractLoanRepaymentScheduleTransactionProcessor.java
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/transactionprocessor/AbstractLoanRepaymentScheduleTransactionProcessor.java
index 5d8aaba..a9e7923 100755
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/transactionprocessor/AbstractLoanRepaymentScheduleTransactionProcessor.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/transactionprocessor/AbstractLoanRepaymentScheduleTransactionProcessor.java
@@ -245,7 +245,7 @@ public abstract class AbstractLoanRepaymentScheduleTransactionProcessor
implemen
             installmentNumber = installments.get(0).getInstallmentNumber();
         }
 
-        if (loanTransaction.isNotWaiver()) {
+        if (loanTransaction.isNotWaiver() && !loanTransaction.isAccrual()) {
             Money feeCharges = loanTransaction.getFeeChargesPortion(currency);
             Money penaltyCharges = loanTransaction.getPenaltyChargesPortion(currency);
             if (chargeAmountToProcess != null && feeCharges.isGreaterThan(chargeAmountToProcess))
{


Mime
View raw message