* Filled out last payment to make sure "leftover" amounts are payed.
diff --git a/service/src/main/java/io/mifos/individuallending/internal/service/IndividualLoanService.java b/service/src/main/java/io/mifos/individuallending/internal/service/IndividualLoanService.java
index 4d6521b..62d173e 100644
--- a/service/src/main/java/io/mifos/individuallending/internal/service/IndividualLoanService.java
+++ b/service/src/main/java/io/mifos/individuallending/internal/service/IndividualLoanService.java
@@ -19,6 +19,7 @@
import io.mifos.individuallending.api.v1.domain.caseinstance.ChargeName;
import io.mifos.individuallending.api.v1.domain.caseinstance.PlannedPayment;
import io.mifos.individuallending.api.v1.domain.caseinstance.PlannedPaymentPage;
+import io.mifos.individuallending.api.v1.domain.product.AccountDesignators;
import io.mifos.individuallending.api.v1.domain.workflow.Action;
import io.mifos.individuallending.internal.service.costcomponent.CostComponentService;
import io.mifos.individuallending.internal.service.costcomponent.PaymentBuilder;
@@ -142,7 +143,7 @@
}
else if (i == sortedRepaymentPeriods.size() - 1)
{ //Last repayment period: Fill the proposed payment out to the remaining balance of the loan.
- requestedRepayment = loanPaymentSize; //TODO: wrong doesn't include last period of interest.
+ requestedRepayment = loanPaymentSize.multiply(BigDecimal.valueOf(2));
requestedDisbursal = BigDecimal.ZERO;
}
else {