RE: Dynamics 365 - Reverse a settled customer sales invoice transaction
if the sales invoice has been closed, meaning paid by customer. you need to first unapply the sales invoice from the payment from the vendor ledger entry so the invoice and payment became open.
then you create a sales credit memo to reverse the sales transaction.
you can also create a customer refund or just keep the payment to apply for future purchases from the customer.