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

This commit is contained in:
Nazeer Hussain Shaik
2017-01-19 16:57:37 +05:30
parent 80fada22aa
commit 77f9d5cb95
@@ -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);
}
}