Rules
VRBL-INV-HR-CIUS-1p0-17
Basic Info
| Rule | The Despatch Advice Reference ID and the Despatch Advice Reference ID cannot coexist, either one of them or neither. |
| Context |
/ubl:Invoice/cac:InvoiceLine
|
| Pattern | vrbl-invoice-hr-cius-1p0 |
| Severity | fatal |
Implementation
(
boolean(cac:DespatchLineReference/cac:DocumentReference/cbc:ID)
and
not(boolean(/ubl:Invoice/cac:DespatchDocumentReference/cbc:ID))
)
or
(
boolean(/ubl:Invoice/cac:DespatchDocumentReference/cbc:ID)
and
not(boolean(cac:DespatchLineReference/cac:DocumentReference/cbc:ID))
)
or
(
not(boolean(cac:DespatchLineReference/cac:DocumentReference/cbc:ID))
and
not(boolean(/ubl:Invoice/cac:DespatchDocumentReference/cbc:ID))
)