Good day, @Transform SR.
Let me share some information on what happens to your invoice once it is deleted.
First, when invoices are voided it retain the information like the date, the items, the name of the customer, invoice number etc. QuickBooks just zeroes out the amount of the voided transaction. Currently, voided invoices cannot be "unvoided".
To get the details of the deleted invoice, you can open your Audit Trail report. This lists each accounting transaction and any additions, deletions, or modifications done to your company file.
Once you accessed the audit trail report, copy the information and recreate the invoice in your QuickBooks.
You can always visit us here in the Community if you have other questions about applying payments to your customer's invoices. I'm here to help.