Skip to content

clearedInvoice from ZATCA is parsed but never stored or used #382

Description

@HotSalsa10

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions