In NetSuite, record deposits to your bank accounts to capture customer payments and other money received. By recording funds deposited, you can accurately track income.
While doing the deposit in another currency the GL impact is shown in the unrealized gain loss. Normally if any invoices or bills are paid then the variance in the exchange rate will be posted to realized gain or loss and if the account period is closed and the invoices or bills are open then the exchange variance is posted to unrealized gain or loss.
In case of the invoice is paid using the undeposited fund. Then the posting of unrealized gain or loss is happen in the deposit record. But the deposit is showing the unrealized matching gain or loss even though the period is open.

This is actually an enhancement in Netsuite. When the deposit is done Netsuite posts in the Unrealized matching gain or loss.