MIFOSX-2384 - Fix incorrect total in repayment schedule

Issue occurs when a non-disbursement charge is used.
This commit is contained in:
Arvind Sujeeth
2015-12-09 21:19:35 -08:00
parent c50a45b2c8
commit 5c4f5fcbd7
@@ -1040,7 +1040,7 @@ public class LoanReadPlatformServiceImpl implements LoanReadPlatformService {
// update totals with details of fees charged during disbursement
totalFeeChargesCharged = totalFeeChargesCharged.plus(disbursementPeriod.feeChargesDue());
totalRepaymentExpected = totalRepaymentExpected.plus(disbursementPeriod.feeChargesDue());
totalRepayment = totalRepayment.plus(totalPaidFeeCharges);
totalRepayment = totalRepayment.plus(disbursementPeriod.feeChargesPaid());
totalOutstanding = totalOutstanding.plus(disbursementPeriod.feeChargesDue()).minus(disbursementPeriod.feeChargesPaid());
Integer loanTermInDays = Integer.valueOf(0);
@@ -2050,4 +2050,4 @@ public class LoanReadPlatformServiceImpl implements LoanReadPlatformService {
}
}
}
}