What happens on invoice cancellation?

Suggestions:
After the complete Sales order process, items are delivered, and invoice is done. If the bill(invoice)which is already posted, is cancelled then below things happen:
1) Cancellation of Invoice can be done by click cancel widgets button of the selected invoice record which is already posted.
2) Sales return is created and credit note is generated.
3) Sales order changes to closed.
Invoice menu exists in Finance -> Receivable -> Invoice