VRBL-INV-HU-1p0-11
Basic Info
| Rule | The Preceding Invoice Reference ID and Preceding Invoice Issue Date must exist when the Invoice Document Reference Prepayment Amount is provided. |
| Context |
/ubl:Invoice/cac:BillingReference/cac:InvoiceDocumentReference
|
| Pattern | vrbl-invoice-hu-1p0 |
| Severity | fatal |
Implementation
not(boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceDocumentReferenceExtension/vrbl:InvoicedPrepaymentAmount))
or
(
boolean(cbc:IssueDate)
and
boolean(cbc:ID)
)