Error codes · EN 16931

BR-CO-24In your invoicing software

Invoice Line Charge Reason Required

This is the rejection, word for word: „[BR-CO-24] Each Invoice line charge (BG-28) shall contain an Invoice line charge reason (BT-144) or an Invoice line charge reason code (BT-145), or both.

XPath: /Invoice/cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator='true']/cbc:AllowanceChargeReason or cbc:AllowanceChargeReasonCode

What to have readyNothing. The file has to be re-exported from your invoicing software; we check it again afterwards.
What we doInvoice Navigator automatically fixes this issue by correcting the `cac:AllowanceCharge` element in your Invoice (BR-CO-24).
If you enter it yourself in your invoicing software
Before
<cac:InvoiceLine>
  <cac:AllowanceCharge>INVALID_CODE</cac:AllowanceCharge>
</cac:InvoiceLine>
After
<cac:InvoiceLine>
  <cac:AllowanceCharge>VALID_CODE</cac:AllowanceCharge>
</cac:InvoiceLine>

Element order is part of the rule: if the element sits in the wrong place, the validator rejects with BR-CO-24.

What the finding looks likeExample
FindingStructure invalid · BR-CO-24
Location//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator='true' and not(cbc:AllowanceChargeReason) and not(cbc:AllowanceChargeReasonCode)]/cbc:AllowanceChargeReasonCode
From youA re-exported file
ThenRe-export
ProofSHA-256 and /verify link after the check