You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by vo...@apache.org on 2020/06/02 17:52:37 UTC
[fineract] branch develop updated: remove line in
AbstractLoanScheduleGenerator [FINERACT-977]
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 fd3b757 remove line in AbstractLoanScheduleGenerator [FINERACT-977]
fd3b757 is described below
commit fd3b75711c1c33f373e09d949efe61101d3a5681
Author: Michael Vorburger <mi...@vorburger.ch>
AuthorDate: Tue Jun 2 06:53:05 2020 +0200
remove line in AbstractLoanScheduleGenerator [FINERACT-977]
It was wrongly added in commit re. fix possible NPE in AbstractLoanScheduleGenerator.
---
.../loanaccount/loanschedule/domain/AbstractLoanScheduleGenerator.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AbstractLoanScheduleGenerator.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AbstractLoanScheduleGenerator.java
index 334296b..db97c4a 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AbstractLoanScheduleGenerator.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AbstractLoanScheduleGenerator.java
@@ -641,9 +641,8 @@ public abstract class AbstractLoanScheduleGenerator implements LoanScheduleGener
&& fixedEmiAmount != null
&& fixedEmiAmount.compareTo(loanApplicationTerms.getFixedEmiAmount()) != 0) {
currentPeriodParams.setEmiAmountChanged(true);
- currentPeriodParams.plusPrincipalForThisPeriod(currentPeriodParams.getEarlyPaidAmount());
}
- currentPeriodParams.plusPrincipalForThisPeriod(currentPeriodParams.getEarlyPaidAmount());
+ currentPeriodParams.plusPrincipalForThisPeriod(currentPeriodParams.getEarlyPaidAmount());
}
// update outstandingLoanBlance using current period