cancel
Showing results for 
Search instead for 
Did you mean: 

Time Type take rule based on % taken of accrual of unrelated Time Type

Jeremy_M
Participant
0 Kudos
309

Hi,

We have a situation where we have granted access to a special leave balance but being able to take it is conditional on a % consumption of annual accrual of a non-related time type being their vacation accrual.

So, I need to be able to calculate that 75% or more of the annual vacation accrual has been consumed before being employee is allowed to access this new additional time type.

I am not sure how best to calculate the percentage of the vacation time type.

Any advice is much appreciated.

thanks

Jeremy

Accepted Solutions (0)

Answers (1)

Answers (1)

PriyankaAgarwal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi jeremy.morcom ,

You can use these 2 rule functions:

1. Get Balance For Posting Types In Period() - Use this for posting type accrual to get the initial balance.

2. Calculate Balance for Types() - Use this to get the available balance for vacation Time type

Lets say , accrual value = 30 days from function Get Balance For Posting Types In Period().

Available balance = 10 days from Calculate Balance for Types()

Subtract these 2 values 30 - 10 = 20(This is the used leave)

Now check if 20 < 0.75*30 , then raise an error.

Kind Regards,

Priyanka