Entry validation formula to restrict user to apply more than 2 leaves
Summary:
Hi all,
The requirement is to restrict users to take more than 2 consecutive leaves in a row
Content (required):
If a user applies 2 days leave in a single transaction, system shouldn't allow taking leave on 3rd-day Example - User already applied for leave on Tuesday & Wednesday ( in a single transaction), system shouldn't allow to take leave on, Monday to Thursday.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
if l_day='2' and l_day1='3' then
(
q=1
CHANGE_CONTEXTS(START_DATE=ADD_DAYS(iv_start_date, -1), END_DATE=ADD_DAYS(iv_start_date, -1))
Tagged:
0