What is the problem?
Create an amendment sale by substitution and process it to the SII or TicketBAI.
How to solve it
Create an invoice as explained here
Send it to the SII or approve it for processing to TicketBAI
Duplicate the invoice
Set the amount of the duplicated invoice to negative
Send it to the SII or approve it for processing to TicketBAI
Select the original invoice and convert it into a sales amendment invoice
Set the new amount to be corrected to negative
Edit the SII/TicketBAI fields and select Substitution
Send it to SII or approve it for processing to TicketBAI