Absence validation of multiple of 0.5 days in case of night shifts
Summary
We have requirement where employee can aplly absence in multiple of 0.5 days like 0.5 Days, 1 Day, 1.5 Days or so on.Content
In Absence Validation Formula, we have set the logic of applying the absence in 0.5 days, which is working fine for day shifts of appling absence.
but where the night shifts came like shift ending on next day then logic is not working.
Validation Formula Logic:
ln_unrounded_duration_d = ln_entry_duration_d
L_DURATION = 0.5
L_TIME = MOD(ln_unrounded_duration_d,L_DURATION)
IF L_TIME = 0 THEN
(
VALID = 'Y'
)
ELSE
(
VALID = 'N'
Please let us know, what we can add to get the validation
0