Absence Type Conversion Formula Not Allowing Absence to be Recorded on Weekend Shifts
So the fast formula below converts absence duration to 0.5 or 1 day depending on some conditions defined in it. However, because of the formula employees are unable to record absences for weekend shifts. It gives the error that duration must be more than 0. I think it is being caused by one of the functions being called in the formula. If we remove the formula, the employee is able to take the leave. Could anyone help with what might be happening?
The formula:
DEFAULT FOR IV_START_DATE IS '4712/12/31 00:00:00' (date)
DEFAULT FOR IV_END_DATE IS '4712/12/31 00:00:00' (date)
DEFAULT FOR IV_START_TIME IS '00:00'