In Labour Allocation when two projects assigned an employee at same time it need to show warning msg

Hi Friends,
I created a new doctype in name of “Labour allocation” for planning employees who will work for which project i need if “A” person assigned to a project then next project shouldnt be assigned at same time for the employee we need to show the overlapping warning messsage