PintLint

Rules / IBR-020

IBR-020 error

The Seller tax representative postal address

The Seller tax representative postal address (ibg-12) must contain a Tax representative country code (ibt-069), if the Seller (ibg-04) has a Seller tax representative party (ibg-11).

Fails

<cac:PostalAddress>
  <!-- cbc:IdentificationCode is missing -->
</cac:PostalAddress>

Fix

Add cbc:IdentificationCode inside cac:PostalAddress.

Schematron
Context
cac:TaxRepresentativeParty/cac:PostalAddress
Test
normalize-space(cac:Country/cbc:IdentificationCode) != ''

Official text: The Seller tax representative postal address (ibg-12) MUST contain a Tax representative country code (ibt-069), if the Seller (ibg-04) has a Seller tax representative party (ibg-11).

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice