Avoid overlapping of dates
In order creation automatically a notification is created in the background.
It copies the malfunction start and malfunction end from the order to the notification.
I need to give an error message if already a notification is created with the same malfunction start and end in the same date for the same equipment.
The logic is to avoid to overlapping of dates.
How i can do it ?