MIFOSX-2328 : added call to update maturity date on approval

This commit is contained in:
pramod
2015-11-05 16:06:57 +05:30
parent 55b1c8c97b
commit 3685c2868e
2 changed files with 4 additions and 2 deletions
@@ -1194,7 +1194,7 @@ public class Loan extends AbstractPersistable<Long> {
}
private void updateLoanScheduleDependentDerivedFields() {
public void updateLoanScheduleDependentDerivedFields() {
this.expectedMaturityDate = determineExpectedMaturityDate().toDate();
this.actualMaturityDate = determineExpectedMaturityDate().toDate();
}
@@ -390,7 +390,9 @@ public class LoanRescheduleRequestWritePlatformServiceImpl implements LoanResche
for (final LoanRepaymentScheduleInstallment repaymentScheduleInstallment : repaymentScheduleInstallments) {
repaymentScheduleInstallment.updateDerivedFields(currency, new LocalDate());
}
//updates maturity date
loan.updateLoanScheduleDependentDerivedFields();
// update the loan object
this.loanRepository.save(loan);
}