From 5c4f5fcbd767a995ebd1f9404eb412b1792d88bb Mon Sep 17 00:00:00 2001 From: Arvind Sujeeth Date: Wed, 9 Dec 2015 17:47:37 -0800 Subject: [PATCH] MIFOSX-2384 - Fix incorrect total in repayment schedule Issue occurs when a non-disbursement charge is used. --- .../loanaccount/service/LoanReadPlatformServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/service/LoanReadPlatformServiceImpl.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/service/LoanReadPlatformServiceImpl.java index 70a4396f7..e44458ee6 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/service/LoanReadPlatformServiceImpl.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/service/LoanReadPlatformServiceImpl.java @@ -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 { } } -} \ No newline at end of file +}