Provide the tender or lot reference

Error BR-DE-CVD-02 XRechnung

The element <name/> "Tender or lot reference" (BT-17) shall be provided.

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

An additional referenced document with ram:TypeCode equal to 50 and a non-empty ram:IssuerAssignedID is missing. If either condition is absent, the tender or lot reference has not been provided.

What the rule means

BT-17 identifies the tender or lot reference. Type code 50 identifies the additional referenced document expected for this purpose.

Affected fields BT-17
Please provide the tender or lot reference

The invoice does not contain a complete tender or lot reference. You can add it as an additional referenced document with the required identifier.

What to do
  1. Add an ram:AdditionalReferencedDocument in ram:ApplicableHeaderTradeAgreement.
  2. Set ram:TypeCode to 50.
  3. Fill ram:IssuerAssignedID with the tender or lot reference.
  4. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>50</ram:TypeCode>
  <ram:IssuerAssignedID/>
</ram:AdditionalReferencedDocument>
✓ Correct
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>50</ram:TypeCode>
  <ram:IssuerAssignedID>TENDER-123</ram:IssuerAssignedID>
</ram:AdditionalReferencedDocument>
Check in FactoorSharp
  • AdditionalReferencedDocument (Header level: BT-17)
  • AdditionalReferencedDocument.TypeCode (BT-17-0)
Technical details

The test requires at least one ram:AdditionalReferencedDocument whose normalized ram:TypeCode is 50 and whose ram:IssuerAssignedID is non-empty after normalization.

Where the rule applies

The rule applies in ram:ApplicableHeaderTradeAgreement to an ram:AdditionalReferencedDocument with type code 50.

Original message from the Schematron
Das Element <name/> "Tender or lot reference" (BT-17) muss übermittelt werden.
Context (rule/@context)
/rsm:CrossIndustryInvoice[$isCVD]/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement
Test expression (assert/@test)
ram:AdditionalReferencedDocument[ normalize-space(ram:TypeCode) = '50' and normalize-space(ram:IssuerAssignedID) ]