closing the accounts payable

SOLVED

Good day

I try to close the account payable for the user not be able to enter invoice with the date  prior to the new months however I am unable to do it because if I closed i can't enter the invoices and if I leave it open I change my prior report,  What can I do