The exchange rate that is used for customer or vendor transactions is stored with the transaction.
Realized gains or losses for currency exchanges are posted to either the legal entity of the invoice or the legal entity of the payment, depending on the option that is selected for the Post currency exchange gain or loss field in the Intercompany accounting form for the legal entity of the payment.
The following examples use these currencies:
• Payment accounting currency: EUR
• Invoice accounting currency: USD
• Payment transaction currency: DKK
• Invoice transaction currency: CAD
Currency calculations
--------------------------------------------------------------------------------
When settling an invoice that is entered in one legal entity with a payment that is entered in another legal entity, the transaction currency of the payment (DKK) is converted in three steps:
1. Converted to the accounting currency of the payment (EUR), using the exchange rates from the legal entity of the payment
2. Converted to the accounting currency of the invoice (USD)
3. Converted to the transaction currency of the invoice (CAD), using the exchange rates from the legal entity of the invoice
The conversion process uses the exchange rates as of the payment date. If the resulting payment amount in the transaction currency of the invoice (CAD) is equal to the invoice amount (CAD), the invoice is considered fully paid.
When the Settle open transactions form is opened from a payment journal where the payment amount was not entered, the amount to settle is calculated based on the invoices that are selected for settlement in the Settle open transactions form. The amount to settle is converted in three steps:
1. Converted to the accounting currency of the invoice (USD), using the exchange rates from the legal entity of the invoice as of the payment date
2. Converted to the accounting currency of the payment (EUR), using the exchange rates from the legal entity of the invoice as of the payment date
3. Converted to the transaction currency of the payment (DKK)
The resulting payment amount is transferred to the payment journal line when you close the Settle open transactions form.
Please refer following link for reference
technet.microsoft.com/.../gg243279.aspx
Please verify and update us if this helps you