fix for Repayment schedule not showing charges due at disbursement
This commit is contained in:
+1
@@ -537,6 +537,7 @@ public class LoanAccountData {
|
||||
this.expectedFirstRepaymentOnDate = expectedFirstRepaymentOnDate;
|
||||
this.interestChargedFromDate = interestChargedFromDate;
|
||||
this.timeline = timeline;
|
||||
this.feeChargesAtDisbursementCharged = feeChargesDueAtDisbursementCharged;
|
||||
|
||||
// totals
|
||||
this.summary = summary;
|
||||
|
||||
+6
@@ -553,6 +553,12 @@ public class LoanReadPlatformServiceImpl implements LoanReadPlatformService {
|
||||
Money totalRepayment = Money.zero(monCurrency);
|
||||
Money totalOutstanding = Money.zero(monCurrency);
|
||||
|
||||
// update totals with details of fees charged during disbursement
|
||||
totalFeeChargesCharged = totalFeeChargesCharged.plus(disbursementPeriod.feeChargesDue());
|
||||
totalRepaymentExpected = totalRepaymentExpected.plus(disbursementPeriod.feeChargesDue());
|
||||
totalRepayment = totalRepayment.plus(disbursementPeriod.feeChargesPaid());
|
||||
totalOutstanding = totalOutstanding.plus(disbursementPeriod.feeChargesDue()).minus(disbursementPeriod.feeChargesPaid());
|
||||
|
||||
Integer loanTermInDays = Integer.valueOf(0);
|
||||
while (rs.next()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user