1. Go to Configuration>Business Rules.
  2. Select Projects and on the left under Enforce Projects account restrictions, mark the option On all transactions.
  3. For any existing journal entry batches, deleted the existing project and reenter the project to to test the business rule.