VRBL-INV-AE-1p0-147
Basic Info
| Rule | When the Invoice Type Code is '381', the Document Reason Code must exist within the Invoice. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-AE-1p0 |
| Severity | fatal |
Used Template: Exists
| Parameter | Value | |
|---|---|---|
| probe | = |
cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:DocumentReasonCode
|
Implementation
(
not(cbc:InvoiceTypeCode = '381')
)
or
(
boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:DocumentReasonCode)
)