UBL-SR-18: Buyer VAT identifier shall occur maximum once
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-SR-18]-Buyer VAT identifier shall occur maximum once
(count(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/upper-case(cbc:ID)='VAT']/cbc:CompanyID) <= 1)UBL-SR-18 is a fatal rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
In a UBL invoice or credit note, the buyer's VAT identifier is recorded in cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme where cac:TaxScheme/cbc:ID equals VAT (case-insensitive). The rule counts the cbc:CompanyID values within such PartyTaxScheme elements and requires that there be at most one. A document fails if the buyer party contains more than one VAT PartyTaxScheme with a cbc:CompanyID.
How to fix
In the buyer party (cac:AccountingCustomerParty/cac:Party), ensure there is no more than one cac:PartyTaxScheme whose cac:TaxScheme/cbc:ID is VAT and that carries a cbc:CompanyID. If duplicates exist, remove all but one, or merge the buyer VAT identifiers into a single cbc:CompanyID. Zero such elements are allowed.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to UBL-SR-18.
Validate an invoice against these rules · All release changes