PintLint

Rules / IBR-101

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 one cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyLegalForm 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: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 your invoice for this rule