PintLint

Rules / IBR-002

IBR-002 error

An Invoice must have an Invoice number

An Invoice must have an Invoice number (ibt-001).

Fails

<Invoice>
  <!-- cbc:ID is missing -->
</Invoice>

Fix

Add cbc:ID inside Invoice.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
normalize-space(cbc:ID) !=''

Official text: An Invoice MUST have an Invoice number (ibt-001).

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

Check an invoice