You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by ar...@apache.org on 2023/01/25 11:09:02 UTC

[fineract] branch revert-2916-fix/delinquency_get_last_repayment created (now 91d0e99b6)

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

arnold pushed a change to branch revert-2916-fix/delinquency_get_last_repayment
in repository https://gitbox.apache.org/repos/asf/fineract.git


      at 91d0e99b6 Revert "Fix to use only loan transaction type 2 in getLastRepaymentTransaction"

This branch includes the following new commits:

     new 91d0e99b6 Revert "Fix to use only loan transaction type 2 in getLastRepaymentTransaction"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[fineract] 01/01: Revert "Fix to use only loan transaction type 2 in getLastRepaymentTransaction"

Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

arnold pushed a commit to branch revert-2916-fix/delinquency_get_last_repayment
in repository https://gitbox.apache.org/repos/asf/fineract.git

commit 91d0e99b6250af2bff50d4182109d982af8397fe
Author: Arnold Gálovics <ga...@users.noreply.github.com>
AuthorDate: Wed Jan 25 12:08:57 2023 +0100

    Revert "Fix to use only loan transaction type 2 in getLastRepaymentTransaction"
    
    This reverts commit e1e3ba2c10679ccb94b7fee2710fa14acdb90c3d.
---
 .../java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
index b410717c8..6d883595a 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
@@ -4946,7 +4946,7 @@ public class Loan extends AbstractAuditableWithUTCDateTimeCustom {
 
     public LoanTransaction getLastRepaymentTransaction() {
         for (final LoanTransaction loanTransaction : this.loanTransactions) {
-            if (!loanTransaction.isReversed() && loanTransaction.isRepayment()) {
+            if (!loanTransaction.isReversed() && loanTransaction.isRepaymentType()) {
                 return loanTransaction;
             }
         }