on 2023 May 17 8:30 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
7 | |
6 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.