UBL-SR-12: Seller VAT identifier shall occur maximum once
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-SR-12]-Seller VAT identifier shall occur maximum once
(count(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/upper-case(cbc:ID)='VAT']/cbc:CompanyID) <= 1)UBL-SR-12 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
The rule requires that the seller (cac:AccountingSupplierParty) has at most one VAT identifier. The test counts every cbc:CompanyID inside cac:PartyTaxScheme where the tax scheme cbc:ID is 'VAT' (case-insensitive) and checks that the count is at most 1. An invoice fails if the seller contains more than one such VAT cbc:CompanyID.
How to fix
In cac:AccountingSupplierParty/cac:Party, ensure there is only one cac:PartyTaxScheme with cac:TaxScheme/cbc:ID equal to VAT that contains a cbc:CompanyID. Remove all but one of any duplicate VAT cbc:CompanyID elements.
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-12.
Validate an invoice against these rules · All release changes