If you ever mark an invoice as paid by mistake, you can undo it to bring back your invoice to unpaid.
Go to your Archive where you'll find the invoice marked as paid
Click on the invoice to go to the details page
Set the Paid amount field back to 0
The invoice is back in your in-progress list