VRBL-INV-HR-CIUS-1p0-21
Basic Info
|
Rule
|
For the given Invoice Type Code, the Invoice Line Commodity Classification Code used for KPD Code must exist within the Invoice Line Group. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:Item
|
|
Pattern
|
vrbl-invoice-hr-cius-1p0 |
|
Severity
|
fatal |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cac:CommodityClassification/cbc:ItemClassificationCode[@listID = concat($VRBL-HR-Prefix, 'KPD')]
|
| displayName_probe |
= |
%{cac:CommodityClassification/cbc:ItemClassificationCode} used for KPD Code
|
Implementation
(
contains($VRBL-CL-HR-InvoiceTypeCode-NoItemClassificationCodeKPD, concat(' ', normalize-space(/ubl:Invoice/cbc:InvoiceTypeCode), ' '))
)
or
(
boolean(cac:CommodityClassification/cbc:ItemClassificationCode[@listID = concat($VRBL-HR-Prefix, 'KPD')])
)