PintLint

Rules / IBR-041

IBR-041 error

Each Invoice line allowance

Each Invoice line allowance (ibg-27) must have an Invoice line allowance amount (ibt-136).

Fails when this is false

exists(cbc:Amount) or not(exists(ancestor::cac:InvoiceLine|ancestor::cac:CreditNoteLine))

The schematron test, verbatim. Context: cac:AllowanceCharge[cbc:ChargeIndicator = false()]

Fix

Change the data so the statement above is true. Paste the invoice into the validator to see the exact element that fails.

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

Check an invoice