FX-SCH-A-000069

Each Document level charge (BG-21) shall have a Document level charge VAT category code (BT-102).

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

[BR-37] Each Document level charge (BG-21) shall have a Document level charge VAT category code (BT-102).

Context
//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='true']
Test
(../ram:CategoryTradeTax[upper-case(ram:TypeCode) = 'VAT']/ram:CategoryCode)

Checked with Factur-X / ZUGFeRD BASIC