cleaning up MIFOSX-1765
This commit is contained in:
+5
-5
@@ -49,11 +49,11 @@ public class DefaultScheduledDateGenerator implements ScheduledDateGenerator {
|
|||||||
dueRepaymentPeriodDate = firstRepaymentPeriodDate;
|
dueRepaymentPeriodDate = firstRepaymentPeriodDate;
|
||||||
} else {
|
} else {
|
||||||
Calendar currentCalendar = loanApplicationTerms.getLoanCalendar();
|
Calendar currentCalendar = loanApplicationTerms.getLoanCalendar();
|
||||||
|
if (currentCalendar == null) {
|
||||||
dueRepaymentPeriodDate = getRepaymentPeriodDate(loanApplicationTerms.getRepaymentPeriodFrequencyType(),
|
dueRepaymentPeriodDate = getRepaymentPeriodDate(loanApplicationTerms.getRepaymentPeriodFrequencyType(),
|
||||||
loanApplicationTerms.getRepaymentEvery(), lastRepaymentDate, loanApplicationTerms.getNthDay(),
|
loanApplicationTerms.getRepaymentEvery(), lastRepaymentDate, loanApplicationTerms.getNthDay(),
|
||||||
loanApplicationTerms.getWeekDayType());
|
loanApplicationTerms.getWeekDayType());
|
||||||
if (currentCalendar != null) {
|
} else {
|
||||||
// If we have currentCalendar object, this neans there is a
|
// If we have currentCalendar object, this neans there is a
|
||||||
// calendar associated with
|
// calendar associated with
|
||||||
// the loan, and we should use it in order to calculate next
|
// the loan, and we should use it in order to calculate next
|
||||||
|
|||||||
Reference in New Issue
Block a user