VRBL-INV-FR-CIUS-1p0-155
Basic Info
|
Rule
|
When the Invoice Type Code represents a credit and no Billing Reference Group is provided, the Invoice Line Invoice Document Reference Issue Date must exist within the Invoice Line Group. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine
|
|
Pattern
|
vrbl-invoice-fr-cius-1p0 |
|
Severity
|
warning |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cac:BillingReference/cac:InvoiceDocumentReference/cbc:IssueDate
|
Implementation
(
not(contains($VRBL-CL-FR-InvoiceTypeCode-Credit, concat(' ', /ubl:Invoice/cbc:InvoiceTypeCode, ' '))) or boolean(/ubl:Invoice/cac:BillingReference/cac:InvoiceDocumentReference[cbc:ID and cbc:IssueDate])
)
or
(
boolean(cac:BillingReference/cac:InvoiceDocumentReference/cbc:IssueDate)
)