fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject incubator-fineract git commit: FINERACT-5 Interest re-calculation setup for loan product but repayment doesn't occur
Date Fri, 20 Jan 2017 06:51:50 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop 80fada22a -> 77f9d5cb9


FINERACT-5 Interest re-calculation setup for loan product but repayment doesn't occur


Project: http://git-wip-us.apache.org/repos/asf/incubator-fineract/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-fineract/commit/77f9d5cb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-fineract/tree/77f9d5cb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-fineract/diff/77f9d5cb

Branch: refs/heads/develop
Commit: 77f9d5cb9565c0694bfd716a4546a5abab7caa2a
Parents: 80fada2
Author: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Authored: Thu Jan 19 16:57:37 2017 +0530
Committer: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Committed: Thu Jan 19 16:57:37 2017 +0530

----------------------------------------------------------------------
 .../org/apache/fineract/portfolio/loanaccount/domain/Loan.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/77f9d5cb/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
----------------------------------------------------------------------
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 08ad953..f6f5153 100755
--- 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
@@ -4617,7 +4617,6 @@ public class Loan extends AbstractPersistableCustom<Long> {
     private void validateActivityNotBeforeLastTransactionDate(final LoanEvent event, final
LocalDate activityDate) {
         if (!(this.repaymentScheduleDetail().isInterestRecalculationEnabled() || this.loanProduct().isHoldGuaranteeFundsEnabled()))
{ return; }
         LocalDate lastTransactionDate = getLastUserTransactionDate();
-        final LocalDate clientOfficeJoiningDate = this.client.getOfficeJoiningLocalDate();
         if (lastTransactionDate.isAfter(activityDate)) {
             String errorMessage = null;
             String action = null;
@@ -4641,7 +4640,7 @@ public class Loan extends AbstractPersistableCustom<Long> {
                 default:
                 break;
             }
-            throw new InvalidLoanStateTransitionException(action, postfix, errorMessage,
clientOfficeJoiningDate);
+            throw new InvalidLoanStateTransitionException(action, postfix, errorMessage,
lastTransactionDate);
         }
     }
 


Mime
View raw message