You can retrieve void invoices that you accidentally voided.
On the Invoices page, set the filter to show voided invoices
In the Status column next to the appropriate invoice, click the Down Arrow button, and then click the status that you want.
Click OK in the confirmation message