Under Options > Company Set up > Trip/Contracts, under Resource Compliancy select the option ‘Do not allow trips/contract to be created with expired items: