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