Credit Note
The credit note is used to correct an error or change an element in an invoice already sent.
You can generate a credit note through two processes: Credit Invoice or Correction Invoice, according to your case.
Credit notes are generated based on original invoices. You do not need to create a negative customer order to correct it.
Credit notes do not impact your stock. If you want to take back or credit a part in your stock, create a Return Material Authorization, then create a credit invoice.