Rules / IBR-179-AE
Buyer VAT identifier must occur maximum once
Buyer VAT identifier (IBT-048) must occur maximum once.
Fails
<cac:Party>
…<cbc:CompanyID>…</cbc:CompanyID>
…<cbc:CompanyID>…</cbc:CompanyID>
</cac:Party>
Fix
Keep one cac:PartyTaxScheme/cbc:CompanyID in cac:AccountingCustomerParty/cac:Party and delete the extras. If both values matter, one of them belongs in a different field.
Schematron
- Context
cac:AccountingCustomerParty/cac:Party- Test
count(cac:PartyTaxScheme/cbc:CompanyID) <=1
Official text: Buyer VAT identifier (IBT-048) MUST occur maximum once