FINERACT-1971: Loan totalUnpaidPayableNotDueInterest field has wrong value after maturity
This commit is contained in:
committed by
Adam Saghy
parent
093054b3db
commit
15fcaed61f
+3
@@ -80,6 +80,9 @@ public class ProgressiveLoanSummaryDataProvider extends CommonLoanSummaryDataPro
|
||||
@Override
|
||||
public BigDecimal computeTotalUnpaidPayableNotDueInterestAmountOnActualPeriod(final Loan loan,
|
||||
final Collection<LoanSchedulePeriodData> periods, final LocalDate businessDate, final CurrencyData currency) {
|
||||
if (loan.isMatured(businessDate)) {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
LoanRepaymentScheduleInstallment loanRepaymentScheduleInstallment = getRelatedRepaymentScheduleInstallment(loan, businessDate);
|
||||
if (loan.isInterestBearing() && loanRepaymentScheduleInstallment != null) {
|
||||
|
||||
Reference in New Issue
Block a user