Credit note on discount allowed for client on soa

Taxpayer on boarded need prepare credit note for their client on statement of accounts , not on any cleared invoices. They just need allow discount on receivable value, hence need prepare credit note.

  • How can we consider mandatory IRN number in XML for credit note clearance, for there is no invoice ref in scenario!

Eg : Total 10 Credit Tax Invoices Generated , cleared by ZATCA , With receivable SOA total = 10050SR. Customer may pay only 10000SR, hence need prepare 50SR credit note without any INV No ref on XML

Please advise on this, your advises will help us improve !
Thanks in Advance