FINERACT-1981: When paying down payment, that should not be reflected on the InterestModel
This commit is contained in:
committed by
Adam Saghy
parent
d202145a88
commit
7288037614
+8
@@ -1549,6 +1549,14 @@ public class AdvancedPaymentScheduleTransactionProcessor extends AbstractLoanRep
|
||||
Money paidPortion;
|
||||
ProgressiveLoanInterestScheduleModel model = ctx.getModel();
|
||||
LocalDate payDate = loanTransaction.getTransactionDate();
|
||||
|
||||
if (installment.isDownPayment() || installment.getDueDate().isAfter(ctx.getModel().getMaturityDate())) {
|
||||
// Skip interest and principal payment processing for down payment period or periods after loan maturity
|
||||
// date
|
||||
return processPaymentAllocation(paymentAllocationType, installment, loanTransaction, transactionAmountUnprocessed,
|
||||
loanTransactionToRepaymentScheduleMapping, charges, balances, LoanRepaymentScheduleInstallment.PaymentAction.PAY);
|
||||
}
|
||||
|
||||
if (DueType.IN_ADVANCE.equals(paymentAllocationType.getDueType())) {
|
||||
payDate = calculateNewPayDateInCaseOfInAdvancePayment(loanTransaction, installment);
|
||||
updateRepaymentPeriodBalances(paymentAllocationType, installment, model, payDate);
|
||||
|
||||
Reference in New Issue
Block a user