VRBL-INV-IN-1p0-45
Basic Info
| Rule | The Invoice Line Commodity Classification Code used for HSN Code must exist within the Invoice Line Group. |
| Context |
/ubl:Invoice/cac:InvoiceLine/cac:Item
|
| Pattern | vrbl-invoice-in-1p0 |
| Severity | fatal |
Used Template: Exists
| Parameter | Value | |
|---|---|---|
| probe | = |
cac:CommodityClassification/cbc:ItemClassificationCode[@listID = 'HS']
|
| displayName_probe | = |
%{cac:CommodityClassification/cbc:ItemClassificationCode} used for HSN Code
|
Implementation
boolean(cac:CommodityClassification/cbc:ItemClassificationCode[@listID = 'HS'])