To cancel a document, click the cancel icon in the actions bar of the document. You have the option to assign a cancellation date in the next step. Please note that this step cannot be reverted due to the fact that stats from the document will be released into the generate section again. The cancellation will create a new document that reverses the cancelled amount and refers to the original document.
Why cancellations cannot be reverted: if you have cancelled a document, the amounts can be invoiced again. Thus, erasing a cancellation would bear the risk of double billing because these stats would be in the original document and potentially in a new one as well.