cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Business Rule to validate the time off request with work schedule weekly off

former_member93929
Discoverer
0 Likes
1,027

Hello Gurus,

I would like to validate the time off request with work schedule weekly off an employee and set up a validation to attach a document if the following or previous day of the time off request is a weekly off as per the work schedule.

How to achieve this? Please advise.

Cheers.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi

This is tricky... I will try to do it this way.

First I create a take rule that use of the following operations to determine the Week Off.

**Has Working Time In Interval()

**Get Number Of Working Days Or Hours For Period()

For the date parameter you wil have to create specific dates according to your week cuts.

Once WEEK OFF is determined you can use parameter SET to fill a CUSTOM FIELD with the date you need to make mandatory the attachment.

Now...

Create a UI Rule for Attachment field that validates if CUSTOM FIELD is not null, request Attachment as Mandatory in that Date (Custom field that can be before or prior date)

Best Regards

Amilcar