Skip to content

Commit 0e65a0f

Browse files
committed
FINERACT-2354: Re-aging: -Interest Handling Option: Equal amortization -- EMICalculator
1 parent 153a3fc commit 0e65a0f

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanproduct/calc/EMICalculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,5 @@ void updateModelRepaymentPeriodsDuringReAge(ProgressiveLoanInterestScheduleModel
148148
LoanApplicationTerms loanApplicationTerms, MathContext mc);
149149

150150
void reAgeEqualAmortization(ProgressiveLoanInterestScheduleModel interestSchedule, LocalDate transactionDate,
151-
LoanReAgeParameter reageParameter, MathContext mc);
151+
LoanReAgeParameter reageParameter);
152152
}

fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanproduct/calc/ProgressiveEMICalculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ private void updateEMIForReAgeEqualAmortization(List<RepaymentPeriod> repaymentP
15311531

15321532
@Override
15331533
public void reAgeEqualAmortization(ProgressiveLoanInterestScheduleModel interestSchedule, LocalDate transactionDate,
1534-
LoanReAgeParameter reageParameter, MathContext mc) {
1534+
LoanReAgeParameter reageParameter) {
15351535
LocalDate originalMaturityDate = interestSchedule.getMaturityDate();
15361536
boolean isAfterOriginalMaturityDate = transactionDate.isAfter(originalMaturityDate);
15371537
List<RepaymentPeriod> reAgedRepaymentPeriods = new ArrayList<>(reageParameter.getNumberOfInstallments());

fineract-progressive-loan/src/test/java/org/apache/fineract/portfolio/loanproduct/calc/ProgressiveEMICalculatorTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4287,7 +4287,7 @@ public void test_transactionInMiddleOfPeriod_EQUAL_AMORTIZATION_FULL_INTEREST()
42874287
loanTransaction.setLoanReAgeParameter(reageParameter);
42884288

42894289
// Update the existing model with re-aged periods
4290-
emiCalculator.reAgeEqualAmortization(interestSchedule, loanTransaction.getTransactionDate(), reageParameter, mc);
4290+
emiCalculator.reAgeEqualAmortization(interestSchedule, loanTransaction.getTransactionDate(), reageParameter);
42914291

42924292
logPeriods(interestSchedule);
42934293

@@ -4368,7 +4368,7 @@ public void test_transactionInMiddleOfPeriod_EQUAL_EQUAL_AMORTIZATION_PAYABLE_IN
43684368
LoanReAgeInterestHandlingType.EQUAL_AMORTIZATION_PAYABLE_INTEREST, null);
43694369

43704370
// Update the existing model with re-aged periods
4371-
emiCalculator.reAgeEqualAmortization(interestSchedule, transactionDate, reageParameter, mc);
4371+
emiCalculator.reAgeEqualAmortization(interestSchedule, transactionDate, reageParameter);
43724372

43734373
logPeriods(interestSchedule);
43744374

@@ -4449,7 +4449,7 @@ public void test_transactionInMiddleOfPeriod_stringOnNextDueDate_EQUAL_EQUAL_AMO
44494449
LoanReAgeInterestHandlingType.EQUAL_AMORTIZATION_PAYABLE_INTEREST, null);
44504450

44514451
// Update the existing model with re-aged periods
4452-
emiCalculator.reAgeEqualAmortization(interestSchedule, transactionDate, reageParameter, mc);
4452+
emiCalculator.reAgeEqualAmortization(interestSchedule, transactionDate, reageParameter);
44534453

44544454
logPeriods(interestSchedule);
44554455

@@ -4524,7 +4524,7 @@ public void test_transactionOnMaturityDate_stringAfterMaturityDate_EQUAL_EQUAL_A
45244524
LoanReAgeInterestHandlingType.EQUAL_AMORTIZATION_PAYABLE_INTEREST, null);
45254525

45264526
// Update the existing model with re-aged periods
4527-
emiCalculator.reAgeEqualAmortization(interestSchedule, transactionDate, reageParameter, mc);
4527+
emiCalculator.reAgeEqualAmortization(interestSchedule, transactionDate, reageParameter);
45284528

45294529
logPeriods(interestSchedule);
45304530

@@ -4599,7 +4599,7 @@ public void test_transactionAfterMaturityDate_EQUAL_EQUAL_AMORTIZATION_PAYABLE_I
45994599
LoanReAgeInterestHandlingType.EQUAL_AMORTIZATION_PAYABLE_INTEREST, null);
46004600

46014601
// Update the existing model with re-aged periods
4602-
emiCalculator.reAgeEqualAmortization(interestSchedule, transactionDate, reageParameter, mc);
4602+
emiCalculator.reAgeEqualAmortization(interestSchedule, transactionDate, reageParameter);
46034603

46044604
logPeriods(interestSchedule);
46054605

0 commit comments

Comments
 (0)