Rules
Basic Info
|
Rule
|
When Invoiced Item Tax Category Code is 'AE', the Item Classification Code used as Goods Type must exist within the Item Information. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:Item
|
|
Pattern
|
vrbl-invoice-AE-1p0 |
|
Severity
|
fatal |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cac:CommodityClassification/cbc:ItemClassificationCode[(@listID = 'VRBL:AE:GoodsType')]
|
| displayName_probe |
= |
%{cac:CommodityClassification/cbc:ItemClassificationCode} used as Goods Type
|
Implementation
(
not(cac:ClassifiedTaxCategory/cbc:ID = 'AE')
)
or
(
boolean(cac:CommodityClassification/cbc:ItemClassificationCode[(@listID = 'VRBL:AE:GoodsType')])
)