PintLint

Rules / IBR-098

IBR-098 error

Seller name must occur maximum once

Seller name (ibt-027) must occur maximum once.

Fails

<Invoice>
  <cbc:RegistrationName>…</cbc:RegistrationName>
  <cbc:RegistrationName>…</cbc:RegistrationName>
</Invoice>

Fix

Keep a single cbc:RegistrationName here and delete the duplicates. If both values matter, one of them belongs in a different field.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
(count(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName) <= 1)

Official text: Seller name (ibt-027) MUST occur maximum once.

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

Check an invoice