Faktura

BR-CO-22

fatalEN 16931EN 16931 business ruleCIIUBLBG-21BT-104BT-105

Each Document level charge (BG-21) shall contain a Document level charge reason (BT-104) or a Document level charge reason code (BT-105), or both.

Why it fails

A document level charge (BG-21) has neither a reason text (BT-104) nor a reason code (BT-105).

How to fix it

Add a reason - free text BT-104 such as 'Shipping' is enough, or a UNTDID 7161 code in BT-105.

What the validator checks

CII — context $Document_level_charges

(../ram:Reason) or (../ram:ReasonCode)

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

exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)

Related rules

Part of BR-CO — Calculation rules.

Validate an invoice against this rule →