Faktura

BR-CL-19

fatalEN 16931code list ruleCIIUBL

Coded allowance reasons MUST belong to the UNCL 5189 code list

Why it fails

An allowance reason code (BT-98 or BT-140) is not in UNCL 5189.

How to fix it

Common codes: 95 discount, 100 special rebate, 102 fixed long-term, 41 bonus for works ahead of schedule, 88 material surcharge deduction, 104 special agreement. Or omit the code and send only the reason text - see BR-CO-21.

What the validator checks

CII — context ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator = false()]/ram:ReasonCode

((not(contains(normalize-space(.), ' ')) and contains(' 41 42 60 62 63 64 65 66 67 68 70 71 88 95 100 102 103 104 105 ', concat(' ', normalize-space(.), ' '))))

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

((not(contains(normalize-space(.), ' ')) and contains(' 41 42 60 62 63 64 65 66 67 68 70 71 88 95 100 102 103 104 105 ', concat(' ', normalize-space(.), ' '))))

Related rules

Part of BR-CL — Code list rules.

Validate an invoice against this rule →