An Invoice shall have an Invoice currency code (BT-5).
The invoice currency code in ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode is missing or empty.
The invoice currency code states the currency in which the invoice amounts are expressed. It is needed to interpret those amounts.
Your invoice is missing the information that states the currency of its amounts. Add the invoice currency code.
- Set the invoice currency through
Currency. - Generate the invoice again and validate it once more.
<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 test checks whether ram:InvoiceCurrencyCode within ram:ApplicableHeaderTradeSettlement is not equal to the empty string.
The rule applies to ram:InvoiceCurrencyCode within the invoice settlement information ram:ApplicableHeaderTradeSettlement.
rule/@context)assert/@test)