VRBL-INV-CN-1p0-3
Basic Info
| Rule | When the Invoice Type Code is 381, the Preceding Invoice Reference ID must exist within the Invoice. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-cn-1p0 |
| Severity | fatal |
Used Template: Exists
| Parameter | Value | |
|---|---|---|
| probe | = |
cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID
|
Implementation
(
not(cbc:InvoiceTypeCode = '381')
)
or
(
boolean(cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID)
)