PintLint

Rules / IBR-015

IBR-015 error

An Invoice must have the Amount due for payment

An Invoice must have the Amount due for payment (ibt-115).

Fails

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

Fix

Add cbc:PayableAmount inside cac:LegalMonetaryTotal.

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

Official text: An Invoice MUST have the Amount due for payment (ibt-115).

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

Check an invoice