An Invoice shall have an Invoice currency code (BT-5).
ram:InvoiceCurrencyCode in ram:ApplicableHeaderTradeSettlement is empty. The invoice currency code BT-5 is therefore missing.
BT-5 states the currency in which the invoice amounts are expressed. This information associates the amounts with a currency.
The currency code is missing from the invoice settlement information. You can add it in ram:InvoiceCurrencyCode.
- Check the value of
FacturXInvoice.Currency. - Ensure that
ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCodecontains a value. - Generate the invoice again and validate it again.
<ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode/> </ram:ApplicableHeaderTradeSettlement>
<ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> </ram:ApplicableHeaderTradeSettlement>
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.
The rule applies to ram:InvoiceCurrencyCode in the document-level settlement information.
rule/@context)assert/@test)