VRBL-INV-FR-CIUS-1p0-113
Basic Info
| Rule | When the Invoice contains a Note with code 'BAR' and value 'B2B', the Buyer Party Legal Entity Company ID must contain exactly 9 characters. |
| Context |
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID
|
| Pattern | vrbl-invoice-fr-cius-1p0 |
| Severity | warning |
Used Template: StringLength
| Parameter | Value | |
|---|---|---|
| probe | = |
.
|
| length | = |
9
|
Implementation
(
not(boolean(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:Note[@code = 'BAR' and . = 'B2B']))
)
or
(
string-length(normalize-space(.)) = 9
)