PintLint

Rules / IBR-012

IBR-012 error

An Invoice must have the Sum of Invoice line net amount

An Invoice must have the Sum of Invoice line net amount (ibt-106).

Fails

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

Fix

Add cbc:LineExtensionAmount inside cac:LegalMonetaryTotal.

Schematron
Context
cac:LegalMonetaryTotal
Test
exists(cbc:LineExtensionAmount)

Official text: An Invoice MUST have the Sum of Invoice line net amount (ibt-106).

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

Check an invoice