Hi @Mabaega,
Could you please check a rounding discrepancy in the XML generated by the ZATCA Phase II extension for a standard B2B invoice?
The first line has a quantity of 7,353 at SAR 0.085 per unit. The exact result is SAR 625.005, which Manager displays as SAR 625.01. The extension exports that line as SAR 625.00. There is no prepayment or invoice-level rounding adjustment on the Manager invoice.
| Field | Manager invoice | Generated XML | ||
|---|---|---|---|---|
| Line 1 net amount | 625.01 | 625.00 | ||
| Total before VAT | 3,193.03 | 3,193.02 | ||
| VAT | 478.95 | 478.95 | ||
| Total including VAT | 3,671.98 | 3,671.97 | ||
| Invoice-level rounding | None | 0.01 | ||
| Amount payable | 3,671.98 | 3,671.97 |
The Compliance Check returned 202 Accepted, with XSD_ZATCA_VALID, one BR-CO-16 warning, and no errors. In the XML, TaxInclusiveAmount and PayableAmount are both 3671.97, while PayableRoundingAmount is 0.01. The invoice is still awaiting production submission.
Could you check how the extension rounds line amounts ending in half a halalah and how it populates PayableRoundingAmount? For this invoice, the expected XML should carry SAR 625.01 through the totals and show SAR 3,671.98 as payable, with no invoice-level rounding adjustment.
Is there a supported way to regenerate the correct XML for this pending invoice? I can share the invoice screenshot, XML, and compliance response privately if needed.
