in service/src/main/java/org/apache/fineract/cn/individuallending/internal/service/schedule/ScheduledActionHelpers.java [159:175]
private static LocalDate orientPaymentDate(final LocalDate paymentDate, final ChronoUnit maximumSpecifiedAlignmentChronoUnit, PaymentCycle paymentCycle) {
if (maximumSpecifiedAlignmentChronoUnit == ChronoUnit.HOURS)
return paymentDate; //No need to orient at all since no alignment is specified.
switch (paymentCycle.getTemporalUnit())
{
case YEARS:
return orientInYear(paymentDate);
case MONTHS:
return orientInMonth(paymentDate);
case WEEKS:
return orientInWeek(paymentDate);
default:
case DAYS:
return paymentDate;
}
}