PintLint

Rules / IBR-016

IBR-016 error

An Invoice must have at least one Invoice line

An Invoice must have at least one Invoice line (ibg-25).

Fails

<Invoice>
  <!-- cac:InvoiceLine or cac:CreditNoteLine missing -->
</Invoice>

Fix

Add cac:InvoiceLine or cac:CreditNoteLine.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
exists(cac:InvoiceLine) or exists(cac:CreditNoteLine)

Official text: An Invoice MUST have at least one Invoice line (ibg-25)

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

Check an invoice