Rules
VRBL-INV-TR-1p2-81
Basic Info
| Rule | When the Buyer Country Code is Turkey, the Buyer Tax ID must have a length of 10 characters if it represents a VKN, or 11 character if it represents a TCKN. |
| Context |
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
|
| Pattern | vrbl-invoice-tr-1p2 |
| Severity | fatal |
Implementation
not(../../cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'TR') or ((string-length(.)=10 or string-length(.)=11) and translate(., $Numerics, '')='')