MIFOSX-880 calculate interest from interestChargedFromDate
This commit is contained in:
+5
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user