List identifier for the item classification

Error BR-65 EN 16931

The Item classification identifier (BT-158) shall have a Scheme identifier.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

If a DesignatedProductClassification is provided, its associated ClassCode is missing a non-empty listID identifier.

What the rule means

The list identifier specifies the classification scheme used to interpret the item classification code.

Affected fields BT-158
Please provide the list identifier for the item classification

A provided item classification is missing the listID identifier on ClassCode. Provide the identifier for the classification list.

What to do
  1. Check the classifications in TradeLineItem.DesignatedProductClassifications.
  2. Add a non-empty listID attribute to the XML element ram:ClassCode.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeProduct>
  <ram:DesignatedProductClassification>
    <ram:ClassCode>123</ram:ClassCode>
  </ram:DesignatedProductClassification>
</ram:SpecifiedTradeProduct>
✓ Correct
<ram:SpecifiedTradeProduct>
  <ram:DesignatedProductClassification>
    <ram:ClassCode listID="TST">123</ram:ClassCode>
  </ram:DesignatedProductClassification>
</ram:SpecifiedTradeProduct>
Check in FactoorSharp
  • DesignatedProductClassificationClassCodes (Business term: BT-158-1)
  • TradeLineItem.DesignatedProductClassifications (BT-158)
Technical details

The test passes if ClassCode/@listID is non-empty or if no DesignatedProductClassification element is present.

Where the rule applies

The rule applies to DesignatedProductClassification within the product of an invoice line and checks ClassCode/@listID.

Context (rule/@context)
//ram:IncludedSupplyChainTradeLineItem
Test expression (assert/@test)
(ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode/ @listID!='') or not (ram:SpecifiedTradeProduct/ram:DesignatedProductClassification)
Changes in the KoSIT validation rules
  • 2023-11-152023-11-15 · AddedUnit test for BR-65 with multiple BT-158 in CII