fatalEN 16931EN 16931 business ruleCIIUBLBG-21BT-102BT-103
A Document level charge (BG-21) where the VAT category code (BT-102) is "Not subject to VAT" shall not contain a Document level charge VAT rate (BT-103).
A document level charge with VAT category Not subject to VAT (O) has a VAT rate (BT-103) that is not allowed: it must be absent altogether.
Remove the VAT rate from the line. A transaction outside the scope of VAT has no rate — not even 0. Or change the charge's category code so the two agree.
CII — context $VATO_Charge
not(ram:RateApplicablePercent)
UBL — context cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
not(cbc:Percent)