Reference
Markdown exportBR-CO-24 Line charge needs a reason or reason code
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.
Problem Description
ERROR
EN 16931 calculation and consistency rule (BR-CO)
Interactive pipeline
Where BR-CO-24 is checked
Click a stage to see what it checks, or type a rule ID to light up the stage that reports it.
BR-CO-24 EN 16931 calculation rule
Reported in stage 2: EN 16931 rules.
Level error: the report recommends rejecting the invoice.
Stage 2 · What it checks
EN 16931 rules
- The core business terms are present (BR-01 to BR-65).
- Totals add up and related fields agree (BR-CO); codes and decimals are valid (BR-CL, BR-DEC).
- Each VAT category is consistent: S, Z, E, AE, K, G, O, L, M (BR-S, BR-Z, BR-AE, BR-IC …).
Example codes
Typical fix
Recalculate totals and VAT from the line data, and correct the VAT category in the source data.
Solution
For every invoice line charge, add a reason (BT-144) and/or a reason code (BT-145): cbc:AllowanceChargeReason / cbc:AllowanceChargeReasonCode in cac:InvoiceLine/cac:AllowanceCharge in UBL, ram:Reason / ram:ReasonCode in ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge in CII.
Quick actions
Context and Significance
This rule is the line-level counterpart of BR-CO-22: every invoice line charge (UBL: cac:InvoiceLine/cac:AllowanceCharge with cbc:ChargeIndicator = true) needs a reason or a reason code, for example ABL (Additional packaging). The error often occurs when surcharges such as extra packaging or small-quantity fees are exported only as an amount on the line.
Valid Examples
- Line charge with BT-145 = ABL and BT-144 = "Special packaging"
Invalid Examples
- Line charge amount 3.00 with neither BT-144 nor BT-145
Code Examples
<cac:InvoiceLine>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:AllowanceChargeReasonCode>ABL</cbc:AllowanceChargeReasonCode>
<cbc:AllowanceChargeReason>Special packaging</cbc:AllowanceChargeReason>
<cbc:Amount currencyID="EUR">3.00</cbc:Amount>
</cac:AllowanceCharge>
</cac:InvoiceLine><cac:InvoiceLine>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:Amount currencyID="EUR">3.00</cbc:Amount>
</cac:AllowanceCharge>
</cac:InvoiceLine>