Rules / IBR-100
Seller legal registration identifier must occur maximum once
Seller legal registration identifier (ibt-030) must occur maximum once.
Fails
<Invoice>
…<cbc:CompanyID>…</cbc:CompanyID>
…<cbc:CompanyID>…</cbc:CompanyID>
</Invoice>
Fix
Keep one cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID 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:CompanyID) <= 1)
Official text: Seller legal registration identifier (ibt-030) MUST occur maximum once.