Context
MY
/ubl:Invoice/cac:TaxExchangeRate
VRBL-Invoice-MY-1p0 - Tax Exchange Rate
Malaysia |
VRBL-Invoice-MY-1p0
| Context ID | INV0971 |
| Usage | C |
| Usage Description | Required when the Document Currency Code |
Description
A group to provide information about the tax exchange rate applied to the invoice amounts.
Child elements
| Usage | Element | Description | Cardinality |
|---|---|---|---|
| M | cbc:SourceCurrencyCode |
Tax Exchange Rate Source Currency Code
The reference currency for this exchange rate; the currency from which the exchange is being made. |
1..1 |
| M | cbc:TargetCurrencyCode |
Tax Exchange Rate Target Currency Code
The target currency for this exchange rate; the currency to which the exchange is being made. |
1..1 |
| M | cbc:CalculationRate |
Tax Exchange Rate Calculation Rate
The factor applied to the source currency to calculate the target currency. |
0..1 |
Details
Example: MY_invoice_01_foreign_currency.xml
<ubl:Invoice>
<!-- ... omitted for readability -->
<cac:TaxExchangeRate>
<cbc:SourceCurrencyCode>USD</cbc:SourceCurrencyCode>
<cbc:TargetCurrencyCode>MYR</cbc:TargetCurrencyCode>
<cbc:CalculationRate>4.733</cbc:CalculationRate>
</cac:TaxExchangeRate>
<!-- ... omitted for readability -->
</ubl:Invoice>
Rules
| Rule ID | Error Message |
|---|---|
| VRBL-INV-MY-1p0-144 | The Tax Exchange Rate Calculation Rate must exist within the Tax Exchange Rate. |