if (loanScheduleModelPeriod.isRepaymentPeriod()) {
Money overdueChargeForInstallment = overDuePenaltyChargesDueWithin(loanScheduleModelPeriod.periodFromDate(),
loanScheduleModelPeriod.periodDueDate(), chargesForUpdate, currency);
totalPenaltyChargesCharged = totalPenaltyChargesCharged.subtract(overdueChargeForInstallment.getAmount());
BigDecimal feeChargesForInstallment = BigDecimal.ZERO;
loanScheduleModelPeriod.addLoanCharges(feeChargesForInstallment, overdueChargeForInstallment.negated().getAmount());
}
}
List<LoanRepaymentScheduleInstallment> installments = retrieveRepaymentSchedule(model);
List<LoanTransaction> loanTransactions = copyTransactions(transactions);