Create a Credit Note with a 10% Discount

I created an invoice for a customer and sent it to Zakat. I forgot to make a discount on the invoice. Now, if I want to create a credit report with a 10% discount on the invoice, what is the required XML? Note that I will not write items