# SE-R-002

Source: https://xmlvalid.com/rules/SE-R-002

> For Swedish suppliers, the Swedish VAT-numbers must have the trailing 12 characters in numeric form

- Level: error
- Rule sets: Peppol BIS Billing 3.0 rules 3.0.21
- Context: `//cac:AccountingSupplierParty/cac:Party[cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'SE' and cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/substring(cbc:CompanyID, 1, 2) = 'SE']`
- Test: `string(number(substring(cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID, 3, 12))) != 'NaN'`

Validate a document against these rules: https://xmlvalid.com/validate
