MIFOSX-2085:scond repayment computing more interest resolved

This commit is contained in:
venkatconflux
2015-06-24 11:46:22 +05:30
parent 4d0fc18629
commit ae6877d4a0
@@ -1243,7 +1243,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;
}