Use a valid allowance or charge indicator value

Error PEPPOL-EN16931-R043 Peppol

Allowance/charge ChargeIndicator value MUST equal 'true' or 'false'

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The text value of cbc:ChargeIndicator is neither true nor false.

What the rule means

cbc:ChargeIndicator indicates whether the amount is a charge or an allowance. Its value must be stated unambiguously as true or false.

Please mark the allowance or charge with `true` or `false`

The indicator for an allowance or charge does not contain either of the two accepted values. You can set it to true or false.

What to do
  1. Find the relevant cbc:ChargeIndicator for the allowance or charge.
  2. Set its text value to true or false.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<cbc:ChargeIndicator>yes</cbc:ChargeIndicator>
✓ Correct
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
Good to know

Use exactly the spellings true or false.

Technical details

The test accepts the normalized text value true or false in cbc:ChargeIndicator and checks the spelling case-sensitively.

Where the rule applies

The rule applies to cbc:ChargeIndicator for document-level allowances or charges and for allowances or charges on an invoice line or credit note line.

Context (rule/@context)
ubl-invoice:Invoice/cac:AllowanceCharge | ubl-invoice:Invoice/cac:InvoiceLine/ cac:AllowanceCharge | ubl-creditnote:CreditNote/cac:AllowanceCharge | ubl-creditnote:CreditNote/ cac:CreditNoteLine/cac:AllowanceCharge
Test expression (assert/@test)
normalize-space(cbc:ChargeIndicator/text()) = 'true' or normalize-space(cbc:ChargeIndicator/text()) = 'false'