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

Invoice Line Invoice Tax Subtotal Amount

Saudi Arabia | VRBL-Invoice-SA-1p2
Context ID INV1339
Usage M

Description

The total tax amount of the invoice line, repeated here for syntactical reasons.

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

The currency of the amount.

1..1
Details

Example: SA_Creditnote_381.xml

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