I've got a custom entity called contracts. This is linked to companies and cases. When raising a case I can link a case to an active contract which stops cases being created against companies that have no active contracts.
The problem I have is that…