PintLint

Rules / IBR-SR-22

IBR-SR-22 error

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

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 a single cbc:Name here and delete the duplicates. 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 an invoice