Evolution 7.20 SDK using incorrect exchange rate with Sales Order

SOLVED

Good day

We make use of the Evolution 7.20 SDK to process customer invoices from our customer system to Evolution. We have recently implemented the Forex module as we started trading in foreign currencies. The invoices correctly process through the SDK using the foreign currency but the system uses the latest loaded exchange rate to convert to local currency and not the exchange rate on the date of the invoice. The approved exchange rates are loaded in Evolution and not the customer system.

If a manual sales order/invoice is raised, the system selects the correct exchange rate on the date of the invoice. How do we get the SDK to use the exchange rate on the date of the invoice and not the latest loaded exchange rate?

Thanks

Rikus