PintLint

Rules / IBR-148-AE

IBR-148-AE error

The Seller VAT registration identifier and must be 10 numeric digits and should be of…

The Seller VAT registration identifier (IBT-032) should be TIN (tax identification number) and must be 10 numeric digits and should be of the format 1XXXXXXXXX.

Fails

<cbc:CompanyID>ABC 123</cbc:CompanyID>

Fix

Fix the value's format. The rule text says what shape it must have.

Schematron
Context
cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/normalize-space(upper-case(cbc:ID)) != 'VAT']/cbc:CompanyID
Test
matches(., "^1[0-9]{9}$")

Official text: The Seller VAT registration identifier (IBT-032) should be TIN (tax identification number) and must be 10 numeric digits and should be of the format 1XXXXXXXXX.

Official · PINT AE (UAE) rules. Severity: error. Runs on UBL XML.

Check an invoice