Cancelled invoices as same invoice with negative amount

Hello, what is the correct way to cancel an invoice as a new invoice with negative amount?

When I cancel an invoice, I see only that invoice with status “cancelled” but as I read here it should be possible to keep both invoices, the original one and the cancellation as a new invoice with the negative same amount.

Thank you.

Hi,

It sounds like you may want to clone the invoice to a credit rather than cancel it.