Invoice line identifier

Error BR-21 EN 16931

Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126).

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

The invoice line is missing ram:LineID, or the element has no value. As a result, the invoice line is not identified by a non-empty identifier.

What the rule means

BT-126 is the identifier of the invoice line. It associates the invoice data with a specifically identified invoice line.

Affected fields BG-25 BT-126
Please provide an identifier for the invoice line

An invoice line is missing an identifier, or its identifier is empty. You can add the identifier in the details for the associated document.

What to do
  1. Provide a non-empty ram:LineID for the invoice line.
  2. Check the value of AssociatedDocument.LineID.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:IncludedSupplyChainTradeLineItem>
  <ram:AssociatedDocumentLineDocument>
    <ram:LineID/>
  </ram:AssociatedDocumentLineDocument>
</ram:IncludedSupplyChainTradeLineItem>
✓ Correct
<ram:IncludedSupplyChainTradeLineItem>
  <ram:AssociatedDocumentLineDocument>
    <ram:LineID>1</ram:LineID>
  </ram:AssociatedDocumentLineDocument>
</ram:IncludedSupplyChainTradeLineItem>
Check in FactoorSharp
  • AssociatedDocument.LineID (BT-126)
  • TradeLineItem.AssociatedDocument (BT-126)
Technical details

The test checks whether ram:AssociatedDocumentLineDocument/ram:LineID has a value other than the empty string.

Where the rule applies

Applies to each invoice line ram:IncludedSupplyChainTradeLineItem and its ram:AssociatedDocumentLineDocument.

Context (rule/@context)
//ram:IncludedSupplyChainTradeLineItem
Test expression (assert/@test)
(ram:AssociatedDocumentLineDocument/ram:LineID!='')