Merge pull request #750 from lingalamadhukar/MIFOSX-880

MIFOSX-880 calculate interest from interestChargedFromDate
This commit is contained in:
Vishwas Babu A J
2014-02-18 20:45:12 -08:00
@@ -111,7 +111,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();
}