cleaning up MIFOSX-1765

This commit is contained in:
pramod
2015-08-17 13:27:22 +05:30
parent dc672153ac
commit 95c43200d6
@@ -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