Merge pull request #750 from lingalamadhukar/MIFOSX-880
MIFOSX-880 calculate interest from interestChargedFromDate
This commit is contained in:
+5
-1
@@ -111,7 +111,11 @@ public abstract class AbstractLoanScheduleGenerator implements LoanScheduleGener
|
|||||||
int daysInPeriodApplicableForInterest = daysInPeriod;
|
int daysInPeriodApplicableForInterest = daysInPeriod;
|
||||||
|
|
||||||
if (periodStartDate.isBefore(idealDisbursementDate)) {
|
if (periodStartDate.isBefore(idealDisbursementDate)) {
|
||||||
periodStartDateApplicableForInterest = idealDisbursementDate;
|
if (loanApplicationTerms.getInterestChargedFromLocalDate() != null) {
|
||||||
|
periodStartDateApplicableForInterest = loanApplicationTerms.getInterestChargedFromLocalDate();
|
||||||
|
} else {
|
||||||
|
periodStartDateApplicableForInterest = idealDisbursementDate;
|
||||||
|
}
|
||||||
daysInPeriodApplicableForInterest = Days.daysBetween(periodStartDateApplicableForInterest, scheduledDueDate).getDays();
|
daysInPeriodApplicableForInterest = Days.daysBetween(periodStartDateApplicableForInterest, scheduledDueDate).getDays();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user