Spain B2G: Document Totals in Tax Currency
You can model the totals for the Document in the Tax Currency.
If the Document Currency is different to the Tax Currency, you use the LegalMonetaryTotal element to transmit the Document totals.
Elements
The following elements are grouped in the LegalMonetaryTotalInTaxCurrency
element:
Name (Technical Name) | Cardinality | Description |
---|---|---|
Sum Of Invoice Line Net Amount (LineExtensionAmount ) | 0..1 | Sum of all invoice line net amounts in the Document. |
Invoice Total Amount Without Tax (TaxExclusiveAmount ) | 0..1 | The total amount of the invoice without tax. |
Invoice Total Amount With Tax (TaxInclusiveAmount ) | 0..1 | The total amount of the invoice with tax. |
Sum Of Allowances on Document Level (AllowanceTotalAmount ) | 0..1 | Sum of all document-level allowances in the Document. |
Sum Of Charges on Document Level (ChargeTotalAmount ) | 0..1 | Sum of all document-level Charges in the Document. |
Paid Amount (PrepaidAmount ) | 0..1 | The sum of amounts which have been paid in advance. |
Rounding Amount (PayableRoundingAmount ) | 0..1 | The amount to be added to the Document total to round the amount to be paid. |
Amount Due For Payment (PayableAmount ) | 1..1 | The outstanding amount that is requested to be paid. |
Restrictions
You must specify the same currency in both the currencyID
attribute and the TaxCurrencyCode element. You muse use values from the ISO4217 code list here.
Example
The following example shows the Amount Due for Payment in Euros:
<Invoice>
<!-- code omitted for clarity -->
<cac:LegalMonetaryTotal>
<cec:UBLExtensions>
<cec:UBLExtension>
<cec:ExtensionContent>
<vrbl:LegalMonetaryTotalExtension>
<vrbl:LegalMonetaryTotalInTaxCurrency>
<cbc:PayableAmount currencyID="EUR">18641.70</cbc:PayableAmount>
</vrbl:LegalMonetaryTotalInTaxCurrency>
</vrbl:LegalMonetaryTotalExtension>
</cec:ExtensionContent>
</cec:UBLExtension>
<!-- code omitted for clarity -->
<cac:LegalMonetaryTotal>
<!-- code omitted for clarity -->
</Invoice>
Updated 11 days ago