Can I block or "Freeze" posting to a Job Cost Code or Extra?

We have several jobs/contracts with allowance items, that once fulfilled we like to no longer have posting to that cost code or extra. Is there a way to block or at least get an error message that a particular cost code or extra on a particular job is "closed"?

We use PJ as well as JC, and the CN module.