Faktura

BR-CO-05

fatalEN 16931EN 16931 business ruleCIIUBLBT-97BT-98

Document level allowance reason code (BT-98) and Document level allowance reason (BT-97) shall indicate the same type of allowance.

Why it fails

The document level allowance carries both a reason text (BT-97) and a reason code (BT-98), and the validator's cross-check says they describe different things.

How to fix it

Make the free text match the UNTDID 5189 code you used, or drop the code and keep only the text. This rule is only enforced where a code/text mapping is defined, so a generic text such as 'Discount' alongside code 95 (Discount) passes.

What the validator checks

CII — context $Document_level_allowances

true()

UBL — context cac:AllowanceCharge[cbc:ChargeIndicator = false()]

true()

Related rules

Part of BR-CO — Calculation rules.

Validate an invoice against this rule →