VAT amount in the accounting currency

Error BR-53 EN 16931

If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

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.

What the rule means

When the accounting currency differs from the invoice currency, the total VAT amount must also be stated in that accounting currency.

Affected fields BT-6 BT-111
Please provide the VAT amount in the different 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.

What to do
  1. Check ram:TaxCurrencyCode and ram:InvoiceCurrencyCode.
  2. Provide the VAT amount with a currencyID matching ram:TaxCurrencyCode.
  3. Check the values using FacturXInvoice.SetTaxCurrencyExchange(...) or the properties FacturXInvoice.TaxCurrency and FacturXInvoice.TaxTotalAmountInAccountingCurrency.
  4. Generate the invoice again and validate it.
Check in FactoorSharp
  • 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.

Where the rule applies

The rule applies to the VAT total in the settlement when ram:TaxCurrencyCode is provided.

Context (rule/@context)
//ram:SpecifiedTradeSettlementHeaderMonetarySummation
Test expression (assert/@test)
not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:TaxCurrencyCode) or ( /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:TaxCurrencyCode and (ram:TaxTotalAmount/@currencyID = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode) and not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:TaxCurrencyCode = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode) )
Changes in the KoSIT validation rules
  • 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