VRBL-INV-FR-CIUS-1p0-F1-3
Basic Info
|
Rule
|
The Preceding Invoice Reference ID must have at most 35 characters, may not start or end with a space, may not contain consecutive spaces and may consist of only letters, numbers, spaces, plus, hyphens, underscores and slashes. |
|
Context
|
/ubl:Invoice/cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID
|
|
Pattern
|
vrbl-invoice-fr-cius-1p0-ppf-flow1 |
|
Severity
|
warning |
Used Template: VRBL-FR-F1-ID-Format
| Parameter |
|
Value |
| probe |
= |
.
|
Implementation
(string-length(.) <= 35)
and
not(starts-with(., ' '))
and
not(substring(., string-length(.), 1) = ' ')
and
not(contains(., ' '))
and
(string-length(translate(., concat($AlphabetUpperCase, $AlphabetLowerCase, $Numerics, ' +-_/'), '')) = 0)