All rules · pint-ae · error
ibr-191-ae
The document type code must be one the UAE profile permits for this kind of document.
Reviewed
Why this rule exists
The type code drives how the document is processed and reported. A credit-note code on an Invoice element, or vice versa, is contradictory and gets rejected at the receiving corner.
Why it usually happens
- Emitting 381 (credit note) inside a UBL <Invoice> element
- Using a type code that is valid in EN 16931 generally but not in the UAE subset
How to fix it
Derive the type code from the same decision that chose the UBL document element.
The official rule
Payment means type code (ibt-081) must be provided except when the invoice type code (ibt-003) is 'Credit note' or "Credit note related to goods or services", or Invoice transaction-type code (BTAE-002) is X1XXXXXX (Deemed supply).
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
((cbc:InvoiceTypeCode|cbc:CreditNoteTypeCode) = "81" or (cbc:InvoiceTypeCode|cbc:CreditNoteTypeCode) = "381" or (cbc:InvoiceTypeCode|cbc:CreditNoteTypeCode) = "261" or matches(cbc:ProfileExecutionID, "^[01]1[01]{6}$")) or exists(cac:PaymentMeans/cbc:PaymentMeansCode)Applied to nodes matching /ubl:Invoice | /cn:CreditNote
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-ae-2026.5 | pint-ae | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-ae-2026.3 | pint-ae | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
Related rules
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