If the Scheme identifier of <name/> "Item classification identifier" (BT-158) is specified with the value 'CVD', exactly one <name/> "Item attribute name" (BT-160) with the value 'cva' shall be present in the same invoice line.
When a ram:ClassCode with @listID = 'CVD' is present, the same ram:SpecifiedTradeProduct does not contain exactly one ram:ApplicableProductCharacteristic whose ram:Description equals cva. The attribute is either missing or present more than once.
A CVD classification must be linked to exactly one cva item attribute on the same invoice line. This keeps the association between the classification and the attribute unambiguous.
The CVD classification is present on this invoice line, but the cva item attribute is missing or occurs more than once. You can add or correct the attribute in the same product.
- Check the
ram:SpecifiedTradeProducton the affected invoice line. - Make sure it contains exactly one
ram:ApplicableProductCharacteristicwithram:Descriptionequal tocva. - Check the details using
DesignatedProductClassificationClassCodesandApplicableProductCharacteristic.Description. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeProduct> <ram:DesignatedProductClassification> <ram:ClassCode listID="CVD">...</ram:ClassCode> </ram:DesignatedProductClassification> </ram:SpecifiedTradeProduct>
<ram:SpecifiedTradeProduct> <ram:DesignatedProductClassification> <ram:ClassCode listID="CVD">...</ram:ClassCode> </ram:DesignatedProductClassification> <ram:ApplicableProductCharacteristic> <ram:Description>cva</ram:Description> </ram:ApplicableProductCharacteristic> </ram:SpecifiedTradeProduct>
ApplicableProductCharacteristic.Description(BT-160)DesignatedProductClassificationClassCodes(Business term: BT-158-1)TradeLineItem.DesignatedProductClassifications(BT-158)
Technical details
The test passes when no ram:ClassCode has @listID = 'CVD', or when the count of ram:ApplicableProductCharacteristic elements with ram:Description = 'cva' is exactly one.
The rule applies within a ram:SpecifiedTradeProduct on an invoice line.
rule/@context)assert/@test)