VRBL-INV-FR-CIUS-1p0-155
Basic Info
|
Rule
|
When the Invoice Line does not contain a Sub Invoice Line Group, the Invoice Line Information Only Indicator is not true and the Invoice Type Code represents a credit and no Preceding Invoice Reference is provided, the Invoice Line Invoice Document Reference Issue Date must exist within the Invoice Line. |
|
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
(
boolean(cac:SubInvoiceLine) or (boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceLineExtension/vrbl:InformationOnlyIndicator) and cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceLineExtension/vrbl:InformationOnlyIndicator='true') or 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)
)