Merge pull request #1537 from pramodn02/MIFOSX-2328
MIFOSX-2328 : added call to update maturity date on approval
This commit is contained in:
+1
-1
@@ -1194,7 +1194,7 @@ public class Loan extends AbstractPersistable<Long> {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateLoanScheduleDependentDerivedFields() {
|
public void updateLoanScheduleDependentDerivedFields() {
|
||||||
this.expectedMaturityDate = determineExpectedMaturityDate().toDate();
|
this.expectedMaturityDate = determineExpectedMaturityDate().toDate();
|
||||||
this.actualMaturityDate = determineExpectedMaturityDate().toDate();
|
this.actualMaturityDate = determineExpectedMaturityDate().toDate();
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -391,6 +391,8 @@ public class LoanRescheduleRequestWritePlatformServiceImpl implements LoanResche
|
|||||||
repaymentScheduleInstallment.updateDerivedFields(currency, new LocalDate());
|
repaymentScheduleInstallment.updateDerivedFields(currency, new LocalDate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//updates maturity date
|
||||||
|
loan.updateLoanScheduleDependentDerivedFields();
|
||||||
// update the loan object
|
// update the loan object
|
||||||
this.loanRepository.save(loan);
|
this.loanRepository.save(loan);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user