/ubl:Invoice/cac:TaxTotal[cbc:TaxAmount/@currencyID = ../cbc:DocumentCurrencyCode]/cac:TaxSubtotal/cbc:TaxableAmount

Tax Category Taxable Amount

Spain | VRBL-Invoice-ES-FacturaE-3p2
Context ID INV1046
Usage M

Description

Sum of all taxable amounts subject to a specific TAX category code and TAX category rate (if the TAX category rate is applicable).

Child elements
Usage Element Description Cardinality
M @currencyID Invoice Tax Subtotal Taxable Amount Currency Code

The currency of the amount.

1..1
Details

Example: ES_B2G_Correction_invoice.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:TaxTotal>
    <!-- ... omitted for readability -->
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="EUR">16140.00</cbc:TaxableAmount>
      <!-- ... omitted for readability -->
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <!-- ... omitted for readability -->
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-CORE-351 The Invoice Tax Subtotal Taxable Amount Currency Code must be the same as Document Currency Code. The only exception are the currencies in Tax Total in Tax Accounting Currency.