Hi there, GIE.
While we don't have an option to undo a reverted transaction. You can still manually apply changes to the sales receipt.
Also, I recommend creating a back up copy of your company file. This way, you can easily restore the file and prevent any accidental data loss.
I've also added this link where you can see helpful articles to handle customer transactions: Sales and customers
Let us know how it goes or if you still have other questions about sales receipt. I'll be happy to help. Have a great day!