SE-R-013

The last digit of a Swedish organization number must be valid according to the Luhn algorithm.

About

ID
SE-R-013
Flag
fatal
Context
//cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity[../cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'SE' and cbc:CompanyID]
Test
u:checkSEOrgnr(normalize-space(cbc:CompanyID))