How to apply leave upon payroll lock
Every month, our payroll dept will lock payroll for 2-3 days to run the payroll.
However during that time ess/mss not allow us to apply leave. Is there any config
can be done to allow user to apply leave like usual. We have problem to control user
since we have about 10000 thousands of staff using ess/mss
TQ in advance
ok this is a relatively simple one, let me explain how we did this in my last project:
1. I think you will have to deactivate the 'error' mode on leave request if payroll area is locked so it is allowed on the portal front to submit and approve leave requests. Talk to a techie to get this done.
2. then you write code in your workflow to
a. check before running the rpt-something-post if the payroll area is locked or not
b. if the answer to the above is yes keep the workflow active and in 'limbo' and keep checking once in while for payroll area lock
c. once payroll area is unlocked then post the approved leave requests to the absence infotype.