VRBL-INV-PL-B2B-3-43

Basic Info

Rule When the Standard Item Scheme ID indicates GTIN, the allowed maximum number of characters for the Standard Item 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
)