VRBL-INV-PL-B2B-3-43

Basic Info

Rule When the Invoice Line Standard Item Identification Scheme ID indicates GTIN, the allowed maximum number of characters for the Invoice Line Standard Item Identification ID is 20.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item/cac:StandardItemIdentification/cbc:ID
Pattern vrbl-invoice-pl-b2b-3p0
Severity fatal

Used Template: MaximumStringLength

Parameter Value
probe = .
length = 20

Implementation

(
	not(@schemeID='0160')
)
or
(
	string-length(normalize-space(.)) <= 20
)