PintLint

Rules / IBR-033

IBR-033 error

Each Document level allowance

Each Document level allowance (ibg-20) must have a Document level allowance reason (ibt-097) or a Document level allowance reason code (ibt-098).

Fails when this is false

((exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)) and not(exists(ancestor::cac:InvoiceLine|ancestor::cac:CreditNoteLine))) or (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