VRBL-INV-HR-CIUS-1p0-18
Basic Info
|
Rule
|
The Invoice Line Receipt Line Reference Document Reference ID and the Receipt Document 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:ReceiptLineReference/cac:DocumentReference/cbc:ID)
and
not(boolean(/ubl:Invoice/cac:ReceiptDocumentReference/cbc:ID))
)
or
(
boolean(/ubl:Invoice/cac:ReceiptDocumentReference/cbc:ID)
and
not(boolean(cac:ReceiptLineReference/cac:DocumentReference/cbc:ID))
)
or
(
not(boolean(cac:ReceiptLineReference/cac:DocumentReference/cbc:ID))
and
not(boolean(/ubl:Invoice/cac:ReceiptDocumentReference/cbc:ID))
)