When the invoice comes from an order line or a receipt line, the currency code inherits the currency code from the original document.
In the case of a direct invoicing line, the currency is loaded with the currency of the invoice header and corresponds to the currency of the supplier.