Accounts Payable

I am looking for a work around to void a check in my current accounting period, that pays something in a previous closed accounting period so far back the accounting period can not be opened. What is my JE or work around to void check or to reinstate that invoice to that previous accounting period?

The check is for the current accounting period for an outstanding invoice and in a closed period. The system will not allow me to reinstate the prior invoice. 

I appreciate any guidance.