You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by ta...@apache.org on 2023/01/24 13:01:12 UTC
[fineract] branch develop updated: Fix to use only loan transaction type 2 in getLastRepaymentTransaction
This is an automated email from the ASF dual-hosted git repository.
taskain 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 e1e3ba2c1 Fix to use only loan transaction type 2 in getLastRepaymentTransaction
e1e3ba2c1 is described below
commit e1e3ba2c10679ccb94b7fee2710fa14acdb90c3d
Author: Jose Alberto Hernandez <al...@MacBook-Pro.local>
AuthorDate: Mon Jan 23 14:28:59 2023 -0600
Fix to use only loan transaction type 2 in getLastRepaymentTransaction
---
.../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 6d883595a..b410717c8 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.isRepaymentType()) {
+ if (!loanTransaction.isReversed() && loanTransaction.isRepayment()) {
return loanTransaction;
}
}