VRBL-INV-PL-B2B-3-90

Basic Info

Rule The Invoice Document Reference UUID must be a valid KSeF number, with a structure like 9999999999-YYYYMMDD-FFFFFF(-)FFFFFF-FF. There must be either 4 or 5 segments separated by -.
Context /ubl:Invoice/cac:BillingReference/cac:InvoiceDocumentReference/cbc:UUID
Pattern vrbl-invoice-pl-b2b-3p0
Severity fatal

Implementation

not(string-length(.)>=35 and string-length(.)<=36) or string-length(translate(., '-', '')) = string-length(.) - 3 or string-length(translate(., '-', '')) = string-length(.) - 4