Welcome to Communities.
Please be informed that the system will restrict any user to enter any invoice line/distribution in never open periods you will get this error ( APP-SQLAP - 10006 the date you entered is not in an open accounting period ).
So you have to open all these periods to enter any invoice line/distribution .
Any action you need to do on your system you must have a need or a necessary logic to apply this action on your system if there is no logic so do not any action you are not convinced.
We think it's a duplicate thread.