VRBL-INV-CN-1p0-12
Basic Info
|
Rule
|
When the Invoice Type Code is 380, the Buyer Party ID used as Company Code must exist within the Buyer Party. |
|
Context
|
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party
|
|
Pattern
|
vrbl-invoice-cn-1p0 |
|
Severity
|
fatal |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cac:PartyIdentification[cbc:ID/@schemeID=concat($VRBL-CN-Prefix, 'CODE')]
|
| displayName_probe |
= |
%{cac:PartyIdentification/cbc:ID} used as Company Code
|
Implementation
(
not(/ubl:Invoice/cbc:InvoiceTypeCode = '380')
)
or
(
boolean(cac:PartyIdentification[cbc:ID/@schemeID=concat($VRBL-CN-Prefix, 'CODE')])
)