An invoice shall contain at least one <name/> INVOICE LINE (BG-25) in which the Scheme identifier of <name/> "Item classification identifier" (BT-158) contains the value 'CVD' and <name/> "Item attribute name" (BT-160) contains the value 'cva'.
The invoice has no invoice line whose ram:SpecifiedTradeProduct contains both a ram:DesignatedProductClassification/ram:ClassCode with listID="CVD" and a ram:ApplicableProductCharacteristic/ram:Description with the value cva.
The invoice must include at least one invoice line where the CVD classification and the cva item attribute are provided together. Both details identify the same invoice line for this rule.
No invoice line with both required details was found in the invoice. Add the CVD classification and the cva item attribute to the same invoice line.
- Choose an invoice line and check its
ram:SpecifiedTradeProduct. - Add the classification there using
ram:ClassCodewithlistID="CVD". - On the same invoice line, add
ram:ApplicableProductCharacteristic/ram:Descriptionwith the valuecva. - Check the details using
TradeLineItem.DesignatedProductClassificationsandApplicableProductCharacteristic.Description. - Regenerate the invoice and validate it again.
<rsm:CrossIndustryInvoice> <rsm:SupplyChainTradeTransaction> <ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedTradeProduct> <ram:ApplicableProductCharacteristic> <ram:Description>cva</ram:Description> </ram:ApplicableProductCharacteristic> </ram:SpecifiedTradeProduct> </ram:IncludedSupplyChainTradeLineItem> </rsm:SupplyChainTradeTransaction> </rsm:CrossIndustryInvoice>
<rsm:CrossIndustryInvoice> <rsm:SupplyChainTradeTransaction> <ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedTradeProduct> <ram:DesignatedProductClassification> <ram:ClassCode listID="CVD">...</ram:ClassCode> </ram:DesignatedProductClassification> <ram:ApplicableProductCharacteristic> <ram:Description>cva</ram:Description> </ram:ApplicableProductCharacteristic> </ram:SpecifiedTradeProduct> </ram:IncludedSupplyChainTradeLineItem> </rsm:SupplyChainTradeTransaction> </rsm:CrossIndustryInvoice>
ApplicableProductCharacteristic.Description(BT-160)DesignatedProductClassificationClassCodes(Business term: BT-158-1)TradeLineItem.DesignatedProductClassifications(BT-158)
Technical details
The test looks within an invoice line for a ram:ClassCode with @listID = 'CVD' and a ram:Description with the value cva; at least one invoice line must satisfy both conditions.
The rule applies to the ram:IncludedSupplyChainTradeLineItem elements in the invoice. At least one invoice line must contain the specified CVD classification and item attribute.
rule/@context)assert/@test)