PintLint

Rules / IBR-SR-22

Seller tax representative name must occur maximum once, if the Seller has a tax representative

Seller tax representative name (ibt-062) must occur maximum once, if the Seller has a tax representative.

Fails

<cac:TaxRepresentativeParty>
  …<cbc:Name>…</cbc:Name>
  …<cbc:Name>…</cbc:Name>
</cac:TaxRepresentativeParty>

Fix

Keep one cac:PartyName/cbc:Name in cac:TaxRepresentativeParty and delete the extras. If both values matter, one of them belongs in a different field.

Schematron
Context
cac:TaxRepresentativeParty
Test
(count(cac:PartyName/cbc:Name) <= 1)

Official text: Seller tax representative name (ibt-062) MUST occur maximum once, if the Seller has a tax representative

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

Check your invoice for this rule