Skip to main content

BR-21 Invoice line identifier is required

Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126) that is unique within the invoice.

Problem Description

Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126) that is unique within the invoice.

ERROR

XRechnung 3.0

Context and Significance

This is a core EN16931 rule; the line identifier lets references and corrections address a specific line, so every line must have one.

Solution

Give every cac:InvoiceLine a cbc:ID value, for example 1, 2, 3, ensuring no line is left without an identifier.

Quick actions

Valid Examples

Use these points as the practical checks for this section.

  • BT-126 = 1 on the first line, BT-126 = 2 on the second line

Invalid Examples

Use these points as the practical checks for this section.

  • A cac:InvoiceLine element without any cbc:ID child

Code Examples

Valid XML
<cac:InvoiceLine>
  <cbc:ID>1</cbc:ID>
  <cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
</cac:InvoiceLine>
Invalid XML
<cac:InvoiceLine>
  <cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
</cac:InvoiceLine>

Affected Fields

Validation Tools