fatalEN 16931EN 16931 business ruleCIIUBLBG-20BT-95BT-96
A Document level allowance (BG-20) where VAT category code (BT-95) is "Not subject to VAT" shall not contain a Document level allowance VAT rate (BT-96).
A document level allowance with VAT category Not subject to VAT (O) has a VAT rate (BT-96) 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 allowance's category code so the two agree.
CII — context $VATO_Allowance
not(ram:RateApplicablePercent)
UBL — context cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
not(cbc:Percent)