FINERACT-2357: Support principal & interest moratorium for progressive loans#5441
FINERACT-2357: Support principal & interest moratorium for progressive loans#5441airajena wants to merge 1 commit intoapache:developfrom
Conversation
26050c7 to
b3c3fcd
Compare
|
@airajena Kindly review the failed checks! |
b3c3fcd to
9d5c239
Compare
Added the fixes |
9d5c239 to
a169dbd
Compare
a169dbd to
08669c9
Compare
| return new LoanConfigurationDetails(currencyData, loanProductRelatedDetail.getNominalInterestRatePerPeriod(), | ||
| loanProductRelatedDetail.getAnnualNominalInterestRate(), loanProductRelatedDetail.getGraceOnInterestCharged(), | ||
| loanProductRelatedDetail.getGraceOnPrincipalPayment(), loanProductRelatedDetail.getGraceOnPrincipalPayment(), | ||
| loanProductRelatedDetail.getGraceOnInterestPayment(), loanProductRelatedDetail.getGraceOnPrincipalPayment(), |
| return getPeriodNumber() <= interestGrace; | ||
| } | ||
|
|
||
| private int getPeriodNumber() { |
There was a problem hiding this comment.
Interesting approach, but i think we should do it differently.
Based on the configuration let's use modifier flags which will instruct the calculator whether interest can be calculated or not.
The interest pause logic which is already in place can be rather used here to achieve the same! :)
I think the right approach anyway would be to consider the grace principal and grace interest from the moment it was generated and the EMI should consider and reflect them from Day 1.
@bharathc27 what do you think?
adamsaghy
left a comment
There was a problem hiding this comment.
Kindly see my concerns!
|
@bharathc27 I would like to hear your opinion on this PR. I think grace periods / moratorium is something that we know from Day 1 and the repayment schedule should be calculated and reflect its side effects, no? EMI calculation should consider and calculate an EMI which remains the same across the periods anyway, no? |
Description
This PR adds principal and interest moratorium support to the Progressive repayment strategy. Principal grace produces interest-only installments for the configured number of periods and re-amortizes the remaining schedule. Interest grace defers interest (it is not waived), with deferred interest recognized in subsequent periods. It also fixes the progressive loan configuration mapping so interest grace is correctly passed through.
Changes
Testing
Checklist