MIFOSX-1490 : added interest schedule for interest first repayment strategies
This commit is contained in:
+2
-1
@@ -24,6 +24,7 @@ public class LoanRepaymentScheduleInstallmentBuilder {
|
||||
private final Money feeCharges = new MoneyBuilder().build();
|
||||
private final Money penaltyCharges = new MoneyBuilder().build();
|
||||
private boolean completed = false;
|
||||
private boolean recalculatedInterestComponent = false;
|
||||
|
||||
public LoanRepaymentScheduleInstallmentBuilder(final MonetaryCurrency currencyDetail) {
|
||||
this.currencyDetail = currencyDetail;
|
||||
@@ -34,7 +35,7 @@ public class LoanRepaymentScheduleInstallmentBuilder {
|
||||
public LoanRepaymentScheduleInstallment build() {
|
||||
final LoanRepaymentScheduleInstallment installment = new LoanRepaymentScheduleInstallment(this.loan, this.installmentNumber,
|
||||
this.fromDate, this.dueDate, this.principal.getAmount(), this.interest.getAmount(), this.feeCharges.getAmount(),
|
||||
this.penaltyCharges.getAmount());
|
||||
this.penaltyCharges.getAmount(), this.recalculatedInterestComponent);
|
||||
if (this.completed) {
|
||||
installment.payPrincipalComponent(this.latestTransactionDate, this.principal);
|
||||
installment.payInterestComponent(this.latestTransactionDate, this.interest);
|
||||
|
||||
Reference in New Issue
Block a user