/ubl:Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount

Sum of Invoice Line Net Amount

Mexico | VRBL-Invoice-MX-1p0
Context ID INV1134
Usage M

Description

Sum of all Invoice line net amounts in the Invoice.

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

The currency of the amount.

1..1
Details

Example: VRBL_MX_BasicInvoice.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="MXN">3000</cbc:LineExtensionAmount>
    <!-- ... omitted for readability -->
  </cac:LegalMonetaryTotal>
  <!-- ... omitted for readability -->
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-MX-1p0-14 The Sum of Invoice Line Net Amount must be equal to the Invoice Line Net Amount.
VRBL-INV-MX-1p0-35 The Sum of Invoice Line Net Amount must have no more than $ExpectedDecimals decimals.
VRBL-INV-CORE-395 The Legal Monetary Total Line Extension Amount Currency Code must be the same as Document Currency Code. The only exception are the currencies in Tax Total in Tax Accounting Currency.