PintLint

Rules / IBR-031

Allowance must have an allowance amount

Allowance (ibg-20) must have an allowance amount (ibt-092).

Fails when this is false

((exists(cbc:Amount) and  not(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 condition below holds. It reads cac:CreditNoteLine, cac:InvoiceLine, cbc:Amount. Paste the invoice into the validator to see the exact element that fails.

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

Check your invoice for this rule