PintLint

Rules / IBR-044

IBR-044 error

Each Invoice line charge

Each Invoice line charge (ibg-28) must have an Invoice line charge reason (ibt-144) or an invoice line charge reason code (ibt-145).

Fails

<cac:AllowanceCharge>
  <!-- cbc:AllowanceChargeReason or cbc:AllowanceChargeReasonCode missing -->
</cac:AllowanceCharge>

Fix

Add cbc:AllowanceChargeReason or cbc:AllowanceChargeReasonCode.

Schematron
Context
cac:AllowanceCharge[cbc:ChargeIndicator = true()]
Test
exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)

Official text: Each Invoice line charge (ibg-28) MUST have an Invoice line charge reason (ibt-144) or an invoice line charge reason code (ibt-145).

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

Check an invoice