fatalEN 16931EN 16931 business ruleCIIUBLBG-25BT-151BT-152
An Invoice line (BG-25) where the VAT category code (BT-151) is "Not subject to VAT" shall not contain an Invoiced item VAT rate (BT-152).
An invoice line with VAT category Not subject to VAT (O) has a VAT rate (BT-152) that is not allowed for this category: 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, if the rate is right, the category code on that line is wrong.
CII — context $VATO_Line
not(ram:RateApplicablePercent)
UBL — context cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
not(cbc:Percent)