Exchange rate gain or loss

How to enter exchange rate Gain or Loss in Sales

Check: Manage Foreign Exchange Difference

I have posted the loss amount like this, but the payment status remains ‘over due’ in the sales invoice