All rules · pint-ae · error

ibr-158-ae

The invoice type code must be consistent with the UAE transaction type code on the same document.

Reviewed

Why this rule exists

These two codes describe the same transaction from two angles. When they disagree, the tax authority cannot tell which one to believe.

Why it usually happens

How to fix it

Derive both codes from one place in your domain model rather than mapping them independently.

The official rule

Where the Invoice type code [IBT-003] is 'Credit note', Credit note reason code [BTAE-03] MUST be there .

Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.

Schematron test

not((cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "381" and not(exists(cac:DiscrepancyResponse/cbc:ResponseCode)))

Applied to nodes matching /ubl:Invoice | /cn:CreditNote

Rule-pack versions

Rule-packLayerSeverityApplies to
pint-ae-2026.5pint-aeerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-ae-2026.3pint-aeerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice

Related rules

ibr-154-ae · ibr-191-ae

Check your own invoice

Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.

Open the validator