PintLint

Rules / IBR-016

An Invoice must have at least one Invoice line

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

Fails

<Invoice>
  <!-- no cac:InvoiceLine and no cac:CreditNoteLine -->
</Invoice>

Fix

Add cac:InvoiceLine or cac:CreditNoteLine to the invoice.

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 your invoice for this rule