PintLint

Rules / IBR-044

Each Invoice line charge must have an Invoice line charge reason or an invoice line charge reason code

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>
  <!-- no cbc:AllowanceChargeReason and no cbc:AllowanceChargeReasonCode -->
</cac:AllowanceCharge>

Fix

Add cbc:AllowanceChargeReason or cbc:AllowanceChargeReasonCode to cac:AllowanceCharge.

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 your invoice for this rule