/ubl:Invoice/cac:LegalMonetaryTotal/cbc:AllowanceTotalAmount

Sum of Allowances on Document Level

Portugal | VRBL-Invoice-PT-2p1
Context ID INV1140
Usage O

Description

Sum of all allowances on document level in the invoice.

Child elements
Usage Element Description Cardinality
M @currencyID Legal Monetary Total Allowance Total Amount Currency Code

The currency of the amount.

1..1
Details

Example: PT_creditnote_381.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:LegalMonetaryTotal>
    <!-- ... omitted for readability -->
    <cbc:AllowanceTotalAmount currencyID="EUR">100.00</cbc:AllowanceTotalAmount>
    <!-- ... omitted for readability -->
  </cac:LegalMonetaryTotal>
  <!-- ... omitted for readability -->
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-PT-2p1-250 The Sum of Allowances on Document Level must have a maximum of 13 digits before the decimal separator, and a maximum of 2 digits after the decimal separator.
VRBL-INV-PT-2p1-251 The Legal Monetary Total Allowance Total Amount Currency Code must be equal to Document Currency Code.
VRBL-INV-EN16931-CM-356 The value of the Legal Monetary Total Allowance Total Amount Currency Code must be contained in Alpha-3 currency [VRBL-CL-EN16931-CurrencyCode].
VRBL-INV-EN16931-S-278 The Sum of Allowances on Document Level must have no more than 2 decimals.
VRBL-INV-CORE-404 The Legal Monetary Total Allowance Total Amount Currency Code must be the same as Document Currency Code. The only exception are the currencies in Tax Total in Tax Accounting Currency.
VRBL-INV-CORE-385 The Sum of Allowances on Document Level must have no more than 2 decimals.