fatalEN 16931EN 16931 business ruleCIIUBLBG-23BT-117BT-118
The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Reverse charge" shall be 0 (zero).
The VAT category tax amount (BT-117) for category Reverse charge (AE) does not equal the taxable amount (BT-116) multiplied by the VAT rate (BT-119).
Set BT-117 = round(BT-116 x BT-119 / 100, 2). Round the product itself - do not sum per-line tax amounts, which drifts by a cent or two.
CII — context $VATAE
../ram:CalculatedAmount = 0
UBL — context /*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
xs:decimal(../cbc:TaxAmount) = 0