We have certain JE scenario in case of loans to accommodate in JDE
We often have loans and deposits in foreign currency, base currency is SEK. When we set up a new EUR-loan, our external tool will generate a journal entry in EUR (bank / loan)
When we repay the loan, our external tool will at this stage create a journal entry mixing both EUR and SEK. The same journal entry will also have different EUR-rates. See below.
Line 1) Credit bank, FX-rate = rate at maturity i.e. repayment. Booked in EUR
Line 2) Debit loans, FX-rate = rate at loan start. Booked in EUR
Line 3) Debit or Credit, the variance between the FX-rates at start and maturity creates the FX-gain/loss. Booked in SEK.