PintLint

Rules / IBR-101

IBR-101 error

Seller additional legal information must occur maximum once

Seller additional legal information (ibt-033) must occur maximum once.

Fails

<Invoice>
  <cbc:CompanyLegalForm>…</cbc:CompanyLegalForm>
  <cbc:CompanyLegalForm>…</cbc:CompanyLegalForm>
</Invoice>

Fix

Keep a single cbc:CompanyLegalForm 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:CompanyLegalForm) <= 1)

Official text: Seller additional legal information (ibt-033) MUST occur maximum once.

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

Check an invoice