Rules / IBR-104
IBR-104 error
Buyer tax identifier must occur maximum once
Buyer tax identifier (ibt-048) must occur maximum once.
Fails
<Invoice>
<cbc:CompanyID>…</cbc:CompanyID>
<cbc:CompanyID>…</cbc:CompanyID>
</Invoice>
Fix
Keep a single cbc:CompanyID 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:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) <= 1)
Official text: Buyer tax identifier (ibt-048) MUST occur maximum once.