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.actualMaturityDate = determineExpectedMaturityDate().toDate();
|
||||
}
|
||||
|
||||
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user