Sick Leave
Dear All
My requirement is
1. Employee is eligible for 12 days sick leave in a year.
I have written a logic in BG Absence duration
IF ( AbsenceType = 'Sick Leave' ) THEN
(
IF ( AbsenceDuration > MaxBalance ) THEN
(
duration = 'FAILED'
invalid_msg = 'Absence Duration exceeds the allowed balance"
)
This logic works 01-Jan-13 to 31-Dec-2013
If i take Dec to Jan...I have problem
Jan 13 to Dec 13 balance is 10 days and Jan 14 to Dec 14 is 12 days....
If I apply leave in between Dec-13 to Jan-14 I should get 22 days...
Any possible....
Thanks
My requirement is
1. Employee is eligible for 12 days sick leave in a year.
I have written a logic in BG Absence duration
IF ( AbsenceType = 'Sick Leave' ) THEN
(
IF ( AbsenceDuration > MaxBalance ) THEN
(
duration = 'FAILED'
invalid_msg = 'Absence Duration exceeds the allowed balance"
)
This logic works 01-Jan-13 to 31-Dec-2013
If i take Dec to Jan...I have problem
Jan 13 to Dec 13 balance is 10 days and Jan 14 to Dec 14 is 12 days....
If I apply leave in between Dec-13 to Jan-14 I should get 22 days...
Any possible....
Thanks
Tagged:
0