Split payment exchange rate gain/loss by invoice distribution
Let say my ledger currency is USD and I created an invoice with foreign currency.
When I create payment for this invoice, there will be a exchange rate gain/loss entry due to the exchange rate different from the invoice date and payment date.
By default, there only be 1 line of gain/loss entry.
Is it possible to split the gain/loss entry by the invoice distribution using SLA or other functions?
In the invoice, I have an invoice line which has 2 distribution lines charging 2 different cost center.
I would like the gain/ loss entry also split by 2 cost centers(or more) according to the invoice distributions