This prevents mistakes where a transaction is entered in the wrong file for its date (which in turns causes errors in reports).