VRBL-INV-TR-1p2-43

Basic Info

Rule If the Invoice Type Code is VRBL:TR:TEKNOLOJIDESTEK, the Buyer Tax ID must contain a 11 character long TCKN.
Context /ubl:Invoice/cac:AccountingCustomerParty/cac:Party
Pattern vrbl-invoice-tr-1p2
Severity fatal

Implementation

not(/ubl:Invoice/cbc:InvoiceTypeCode = concat($VRBL-TR-Prefix, 'TEKNOLOJIDESTEK'))
or
string-length(cac:PartyTaxScheme/cbc:CompanyID)=11