Hi Gurus,
I have a doubt here and need your help.
I have developed a leave application, wherein I need the following validation.
- contract employee throw and error :
---> Achieved by checking persg = 'C'.
- If the employee is a temporary employee throw and error
---> Achieved by checking persg = 'B'
- if the temporary employee has less then 12 months of continuous service.
---> Achieved by checking getting the hired date and getting the difference between dates in months and comparing the months with 12 months.
- If the employee is a temporary employee who got hired less then 12 months from the current date.
-----> Looking a resolution for this....
- IF the temporary employee who got hired more then 12 months from the current date but not continuous in service, i.e has a leaving action in between , then throw an error message.
-----> Looking a resolution for this....
Please suggest resolution for the last two issues.
Thanks,
Aakash Awasthi