fatalEN 16931EN 16931 business ruleCIIUBLBG-20BT-95
Each Document level allowance (BG-20) shall have a Document level allowance VAT category code (BT-95).
A document level allowance (BG-20) has no VAT category code (BT-95).
Add BT-95 to the allowance's TaxCategory. It must match one of the categories used on the invoice, because the allowance is subtracted from that category's taxable amount (see BR-S-08).
CII — context $Document_level_allowances
(../ram:CategoryTradeTax[upper-case(ram:TypeCode) = 'VAT']/ram:CategoryCode)
UBL — context cac:AllowanceCharge[cbc:ChargeIndicator = false()]
exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID)