PintLint

Rules / IBR-021

IBR-021 error

Each Invoice line

Each Invoice line (ibg-25) must have an Invoice line identifier (ibt-126).

Fails

<cac:InvoiceLine>
  <!-- cbc:ID is missing -->
</cac:InvoiceLine>

Fix

Add cbc:ID inside cac:InvoiceLine.

Schematron
Context
cac:InvoiceLine | cac:CreditNoteLine
Test
normalize-space(cbc:ID) != ''

Official text: Each Invoice line (ibg-25) MUST have an Invoice line identifier (ibt-126).

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice