fatalEN 16931EN 16931 business ruleCIIUBLBT-110BT-117
Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).
The Invoice total VAT amount (BT-110) does not equal the sum of the VAT category tax amounts (BT-117) in the VAT breakdown.
Set BT-110 = sum of every BG-23 group's BT-117. Do not compute it from the invoice total x rate, and do not sum per-line VAT - the breakdown is the single source of truth. If BT-110 is expressed in a second currency, that is BT-111, a different field.
CII — context $Tax_Total
. = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CalculatedAmount)*10*10)div 100)
UBL — context /ubl:Invoice/cac:TaxTotal | /cn:CreditNote/cac:TaxTotal
(xs:decimal(child::cbc:TaxAmount)= round((sum(cac:TaxSubtotal/xs:decimal(cbc:TaxAmount)) * 10 * 10)) div 100) or not(cac:TaxSubtotal)