Invoice currency code

Error BR-05 EN 16931

An Invoice shall have an Invoice currency code (BT-5).

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

ram:InvoiceCurrencyCode in ram:ApplicableHeaderTradeSettlement is empty. The invoice currency code BT-5 is therefore missing.

What the rule means

BT-5 states the currency in which the invoice amounts are expressed. This information associates the amounts with a currency.

Affected fields BT-5
Please add the invoice currency code

The currency code is missing from the invoice settlement information. You can add it in ram:InvoiceCurrencyCode.

What to do
  1. Check the value of FacturXInvoice.Currency.
  2. Ensure that ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode contains a value.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableHeaderTradeSettlement>
  <ram:InvoiceCurrencyCode/>
</ram:ApplicableHeaderTradeSettlement>
✓ Correct
<ram:ApplicableHeaderTradeSettlement>
  <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>
</ram:ApplicableHeaderTradeSettlement>
Check in FactoorSharp
  • FacturXInvoice.Currency (Invoice currency: BT-5)
  • FacturXInvoice.SetTaxCurrencyExchange(taxTotalInAccountingCurrency, accountingCurrency, conversionRate, conversionRateTimestamp) (conversionRate: BT-5)
Technical details

The XPath checks whether ram:InvoiceCurrencyCode under ram:ApplicableHeaderTradeSettlement contains a non-empty value.

Where the rule applies

The rule applies to ram:InvoiceCurrencyCode in the document-level settlement information.

Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode!='')