VRBL-INV-IT-1p2-21
Basic Info
|
Rule
|
The SdI Receiver Code is restricted to 6 characters, when Transmission Format Code = 'VRBL:IT:FPA12', and to 7 characters otherwise. |
|
Context
|
/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:SdIReceiverCode
|
|
Pattern
|
vrbl-invoice-it-1p2 |
|
Severity
|
fatal |
Implementation
(
(../vrbl:TransmissionFormatCode = concat($VRBL-IT-Prefix, 'FPA12'))
and
(string-length(normalize-space(.)) = 6)
)
or
(
not(../vrbl:TransmissionFormatCode = concat($VRBL-IT-Prefix, 'FPA12'))
and
(string-length(normalize-space(.)) = 7)
)