PintLint

Rules / IBR-148-AE

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

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

<cac:PartyTaxScheme>
  <cbc:CompanyID>100123456700003</cbc:CompanyID>
  <cac:TaxScheme><cbc:ID>TIN</cbc:ID></cac:TaxScheme>
</cac:PartyTaxScheme>

Fix

In the seller's non-VAT cac:PartyTaxScheme, cbc:CompanyID is the 10-digit tax identification number (TIN) starting with 1, not the 15-digit TRN. The TRN goes in the cac:PartyTaxScheme whose scheme is VAT.

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 your invoice for this rule