Here is a simple way to alert someone when they are trying to associate an expired Contract with a Ticket.