PintLint

Rules / IBR-024

IBR-024 error

Each Invoice line

Each Invoice line (ibg-25) must have an Invoice line net amount (ibt-131).

Fails

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

Fix

Add cbc:LineExtensionAmount inside cac:InvoiceLine.

Schematron
Context
cac:InvoiceLine | cac:CreditNoteLine
Test
exists(cbc:LineExtensionAmount)

Official text: Each Invoice line (ibg-25) MUST have an Invoice line net amount (ibt-131).

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

Check an invoice