/ubl:Invoice/cac:InvoiceLine/cac:TaxTotal[cbc:TaxAmount/@currencyID = /ubl:Invoice/cbc:TaxCurrencyCode]/cac:TaxSubtotal/cbc:TaxAmount

Invoice Line Accounting Tax Subtotal Amount

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

Description

For syntactical reasons: Again the total tax amount of the invoice line in tax currency.

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

The currency of the amount.

1..1
Details

Example: ES_B2G_Invoice_with_currencies.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:InvoiceLine>
    <!-- ... omitted for readability -->
    <cac:TaxTotal>
      <!-- ... omitted for readability -->
      <cac:TaxSubtotal>
        <!-- ... omitted for readability -->
        <cbc:TaxAmount currencyID="EUR">1694.70</cbc:TaxAmount>
        <!-- ... omitted for readability -->
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <!-- ... omitted for readability -->
  </cac:InvoiceLine>
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-CORE-575 The Invoice Line Accounting Tax Subtotal Amount Currency Code must be the same as Tax Accounting Currency.