Rules
VRBL-INV-PEPPOL-PINT-282
Basic Info
| Rule | If the Buyer Electronic Address is marked as a GLN, it must be 13 digits. |
| Context |
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cbc:EndpointID
|
| Pattern | vrbl-invoice-peppol-pint |
| Severity | fatal |
Used Template: GLN-length-check
Implementation
not(@schemeID = '0088')
or
(
string-length(normalize-space(.)) = 13
and
string(number(normalize-space(.))) != 'NaN'
)