MIFOSX-880 calculate interest from interestChargedFromDate

This commit is contained in:
Madhukar
2014-02-10 19:25:38 +05:30
parent ac932974f3
commit cd42134257
@@ -84,7 +84,11 @@ public abstract class AbstractLoanScheduleGenerator implements LoanScheduleGener
int daysInPeriodApplicableForInterest = daysInPeriod;
if (periodStartDate.isBefore(idealDisbursementDate)) {
periodStartDateApplicableForInterest = idealDisbursementDate;
if (loanApplicationTerms.getInterestChargedFromLocalDate() != null) {
periodStartDateApplicableForInterest = loanApplicationTerms.getInterestChargedFromLocalDate();
} else {
periodStartDateApplicableForInterest = idealDisbursementDate;
}
daysInPeriodApplicableForInterest = Days.daysBetween(periodStartDateApplicableForInterest, scheduledDueDate).getDays();
}