PintLint

Rules / IBR-102

Buyer name must occur maximum once

Buyer name (ibt-044) must occur maximum once.

Fails

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

Fix

Keep one cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName in the invoice and delete the extras. If both values matter, one of them belongs in a different field.

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

Official text: Buyer name (ibt-044) MUST occur maximum once.

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

Check your invoice for this rule