how to count only approved absences in the fast formula
Summary:
Content (required):
Hi Experts,
I have a requirement to write validation formula based on the number of absences taken. But the system is considering 'Denied' absences also in the count which is making the validation fail.
I have used below IF condition to exclude 'DENIED' and "WITHDRAWN' absences from the count.
if((ANC_ABS_TYP_NAME = 'Unpaid Leave') and ((ANC_ABS_ENTRS_ABSENCE_STATUS_CD <> 'ORA_WITHDRAWN') or (ANC_ABS_ENTRS_APPROVAL_STATUS_CD <> 'DENIED')))then
(
ln_duration = ln_duration + ANC_ABS_ENTRS_DURATION
)
Am I doing any mistake in the formula here? How do I exclude DENIED absences from the count?
0