FINERACT-1971: Fixing Loan repayment re-schedule with down payment.

This commit is contained in:
Peter Bagrij
2023-10-30 16:00:52 +01:00
committed by Arnold Gálovics
parent 0b1ca2dced
commit 9b2c24289c
4 changed files with 161 additions and 16 deletions
@@ -2186,8 +2186,10 @@ public abstract class AbstractLoanScheduleGenerator implements LoanScheduleGener
Money principalToBeScheduled = getPrincipalToBeScheduled(loanApplicationTerms);
// actual outstanding balance for interest calculation
Money outstandingBalance = principalToBeScheduled;
loanScheduleParams.setOutstandingBalance(outstandingBalance);
// total outstanding balance as per rest for interest calculation.
Money outstandingBalanceAsPerRest = outstandingBalance;
loanScheduleParams.setOutstandingBalanceAsPerRest(outstandingBalanceAsPerRest);
// this is required to update total fee amounts in the
// LoanScheduleModel