ReportOrClearInvoiceResult parses clearedInvoice (zatca_api.py:106) but nothing reads it — _send_xml_via_api only uses the raw response and status. For standard invoices that means the countersigned XML ZATCA returns on clearance is thrown away: we keep the locally signed XML, the print format shows the locally generated QR rather than the one ZATCA embeds on clearance, and the PDF/A-3 download embeds the pre-clearance XML.
Is that intentional? If not, I'm happy to work on storing the cleared invoice on the additional fields doc and preferring it for the standard-invoice print/PDF paths — but wanted to check the intended design before touching the clearance flow.
ReportOrClearInvoiceResultparsesclearedInvoice(zatca_api.py:106) but nothing reads it —_send_xml_via_apionly uses the raw response and status. For standard invoices that means the countersigned XML ZATCA returns on clearance is thrown away: we keep the locally signed XML, the print format shows the locally generated QR rather than the one ZATCA embeds on clearance, and the PDF/A-3 download embeds the pre-clearance XML.Is that intentional? If not, I'm happy to work on storing the cleared invoice on the additional fields doc and preferring it for the standard-invoice print/PDF paths — but wanted to check the intended design before touching the clearance flow.