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