PintLint

Rules / IBR-012

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>
  <!-- no cbc:LineExtensionAmount -->
</cac:LegalMonetaryTotal>

Fix

Add cbc:LineExtensionAmount to 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 your invoice for this rule