When entering purchase invoices it should have a warning when you are entering a date that is in the future in case you have entered this wrong. I just managed to enter an invoice for the date 12/02/2640! This would be similar to how you can set a date to not allow you to enter something in the previous financial year.