PintLint

Rules / IBR-036

IBR-036 error

Charge

Charge (ibg-21) must have a charge amount (ibt-099).

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 = true()]

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