Allowed scheme for the item classification

Error BR-TMP-CVD-01 XRechnung

The scheme for forming <name/> "Item classification identifier" (BT-158) shall be selected from the code list UNTDID 7143.

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

The value of listID on ram:ClassCode is not a single allowed identifier from the UNTDID 7143 code list used by this rule. The value must not contain a space.

What the rule means

listID identifies the scheme used to form the item classification. An allowed value from UNTDID 7143 identifies the scheme being used.

Affected fields BT-158
Please choose an allowed scheme for the item classification

The scheme for the item classification in ram:ClassCode is not accepted by this check. You can correct the value using the UNTDID 7143 code list allowed by this rule.

What to do
  1. Check the listID attribute on ram:ClassCode for the affected invoice line.
  2. Choose a single identifier from the UNTDID 7143 code list allowed by this rule.
  3. Check the value using DesignatedProductClassificationClassCodes.
  4. Regenerate the invoice and validate it again.
Check in FactoorSharp
  • DesignatedProductClassificationClassCodes (Business term: BT-158-1)
  • TradeLineItem.DesignatedProductClassifications (BT-158)
Technical details

For each applicable ram:ClassCode, the test checks that the normalized value of @listID contains no space and occurs in $UNTDID-7143-CVD-CODES.

Where the rule applies

The rule applies to ram:ClassCode within ram:DesignatedProductClassification of a ram:SpecifiedTradeProduct on an invoice line.

Original message from the Schematron
Das Bildungsschema für <name/> "Item classification identifier" (BT-158) ist aus der Codeliste UNTDID 7143 zu wählen.
Context (rule/@context)
/rsm:CrossIndustryInvoice[$isCVD]/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode
Test expression (assert/@test)
(( not(contains(normalize-space(@listID), ' ')) and contains($UNTDID-7143-CVD-CODES, concat(' ', normalize-space(@listID), ' ')) ))