If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.
If ram:TaxCurrencyCode is provided and differs from ram:InvoiceCurrencyCode, a ram:TaxTotalAmount must be provided with a currencyID matching ram:TaxCurrencyCode. Otherwise, the VAT amount in the accounting currency is missing or its currency does not match.
When the accounting currency differs from the invoice currency, the total VAT amount must also be stated in that accounting currency.
The invoice specifies an accounting currency that differs from the invoice currency, but the VAT amount in that currency is missing or has a different currency identifier. You can set the amount and currency identifier together.
- Check
ram:TaxCurrencyCodeandram:InvoiceCurrencyCode. - Provide the VAT amount with a
currencyIDmatchingram:TaxCurrencyCode. - Check the values using
FacturXInvoice.SetTaxCurrencyExchange(...)or the propertiesFacturXInvoice.TaxCurrencyandFacturXInvoice.TaxTotalAmountInAccountingCurrency. - Generate the invoice again and validate it.
FacturXInvoice.SetTaxCurrencyExchange(taxTotalInAccountingCurrency, accountingCurrency, conversionRate, conversionRateTimestamp)(taxTotalInAccountingCurrency: BT-111; accountingCurrency: BT-6)FacturXInvoice.TaxCurrency(BT-6)FacturXInvoice.TaxTotalAmountInAccountingCurrency(BT-111)
Technical details
The XPath accepts either the absence of ram:TaxCurrencyCode or a ram:TaxTotalAmount/@currencyID value matching it, provided the accounting currency differs from the invoice currency.
The rule applies to the VAT total in the settlement when ram:TaxCurrencyCode is provided.
rule/@context)assert/@test)- 2023-11-152023-11-15 · AddedUnit test on BR-53 with BT-5, BT-6 and BT-110 and BT-111 in CII.
- 2022-07-152022-07-15 · AddedTests for BR-53 and BR-CO-15 in CII with same BT-5 and BT-6