If the invoice has receipts or adjustments applied, you will get the following error message:
The following invoice(s) could not be modified: Invoice # – The invoice has receipts and/or adjustments applied.
You must unapply the receipts or adjustments before you can unpost the invoice.