This method checks if a Lehrauftrag has a corresponding contract. If vertrag_id is null => is still a new Lehrauftrag If vertrag_id is presendt => Lehrauftrag has been ordered and a contract has been created.