I am working on Leave workflow. My issue is when an employee applies for leave of Past date then it should go to DGM other than Immediate superior. Its sending a workitem to DGM correctly but in Portal manager coloumn is mandatory if the employee enters the immediate manager id overthere then that manager is also getting the workitem. In this case manager should not get the workitem. And if the employee enters a manager name other than his reporting than its not sending the workitem to the immediate superior.
How can I control this?
Can anybody please suggest me how to overcome this?