Reverse unrealized exchange gain/loss

Hi,

Does erpnext reverse unrealized exchange gain/loss entries and the beginning of new period? If not, how does it keep unrealized gain/loss off books when payment is posted?