BR-CO-07: Invoice line allowance reason code (BT-140) and allowance reason (BT-139) must indicate the same type
Official message
[BR-CO-07] Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason.
[BR-CO-07] Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason.
[BR-CO-07] Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason.
- Severity
- Error The invoice is invalid and may be rejected by the recipient.
- Applies to
- EN 16931 (CII), EN 16931 (UBL), Factur-X / ZUGFeRD EN 16931
- Affected fields
- BT-140, BT-139
What does this mean?
For an invoice line allowance (BG-27) the code (BT-140) and the text (BT-139) shall indicate the same type, i.e. the code must not stand for a different type than the text. The official validation artefacts do not check this automatically: the test is always fulfilled, so the rule is not reported as an error during validation. The requirement still applies.
Typical causes
A code from code list UNTDID 5189 was chosen that does not match the explanatory text.
The text was changed without adjusting the code, or vice versa.
How to fix the error
Choose the code from code list UNTDID 5189 that describes the type of the allowance and word the text (BT-139) accordingly.
Alternatively state only the text; according to BR-CO-23 one of the two values is sufficient.
CII: ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ReasonCode and ram:Reason (ram:ChargeIndicator = false), UBL: cac:InvoiceLine/cac:AllowanceCharge/cbc:AllowanceChargeReasonCode and cbc:AllowanceChargeReason (cbc:ChargeIndicator = false).
In E-Rechnungsfreund
In the invoice form, expert view ("Experte"), section "Rechnungspositionen (BG-25)" (invoice lines), tab "Zu-/Abschläge (BG-27/28)" of the line, make the field "Begründung (BT-139/144)" (reason) and the code selection next to it consistent for the entry "Abschlag (BG-27)" (allowance).
For developers: test expression per syntax
EN 16931 (CII) (CII)
Context: //ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']
true()
EN 16931 (UBL) (UBL)
Context: //cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
true()
Factur-X / ZUGFeRD EN 16931 (CII)
Technical ID in the source: FX-SCH-A-000216
Context: //ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']
true()
Related validation rules
- BR-CO-03: Value added tax point date (BT-7) and tax point date code (BT-8) are mutually exclusive
- BR-CO-04: Invoiced item VAT category code (BT-151) is missing
- BR-CO-05: Document level allowance reason code (BT-98) and allowance reason (BT-97) must indicate the same type
- BR-CO-06: Document level charge reason code (BT-105) and charge reason (BT-104) must indicate the same type
- BR-CO-08: Invoice line charge reason code (BT-145) and charge reason (BT-144) must indicate the same type
- BR-CO-09: VAT identifier without valid country prefix (BT-31, BT-48, BT-63)
Frequently asked questions
Why is this rule never reported as an error?
Whether code and text match in content cannot be checked by machine. The official validation artefacts therefore contain BR-CO-07 only with a test that is always fulfilled. What is checked automatically is that at least one of the two is present (BR-CO-23).
Last updated:
Explanation of the validation rule, not legal or tax advice.