Under Edit Company profile | Batch Options, what is the setting for "Validate closed periods", and is your prior year marked as "Closed"?
Having said that, the date of the transaction is irrelevant in the general ledger. The transaction is posted to the year and period you specify, regardless of the date of the transaction.
_________________________
Andrew Bates