PintLint

Rules / IBR-020

The Seller tax representative postal address must contain a Tax representative country code, if the Seller has a Seller tax representative party

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>
  <!-- no cac:Country/cbc:IdentificationCode -->
</cac:PostalAddress>

Fix

Add cac:Country/cbc:IdentificationCode to cac:TaxRepresentativeParty/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 your invoice for this rule