Merge pull request #1430 from venkatconflux/MIFOSX-2085

MIFOSX-2085:scond repayment computing more interest resolved
This commit is contained in:
Vishwas Babu A J
2015-08-24 17:30:25 +05:30
@@ -1233,7 +1233,11 @@ public abstract class AbstractLoanScheduleGenerator implements LoanScheduleGener
final LocalDate idealDisbursementDate, LocalDate periodStartDateApplicableForInterest) {
if (periodStartDate.isBefore(idealDisbursementDate)) {
if (loanApplicationTerms.getInterestChargedFromLocalDate() != null) {
periodStartDateApplicableForInterest = loanApplicationTerms.getInterestChargedFromLocalDate();
if (periodStartDate.isEqual(loanApplicationTerms.getExpectedDisbursementDate())
|| loanApplicationTerms.getCalculatedRepaymentsStartingFromLocalDate().isBefore(
loanApplicationTerms.getInterestChargedFromLocalDate())) {
periodStartDateApplicableForInterest = loanApplicationTerms.getInterestChargedFromLocalDate();
}
} else {
periodStartDateApplicableForInterest = idealDisbursementDate;
}