Payment Reconciliation effecting closed books of account ! !!

Using the payment reconciliation tool to adjust payment entries against invoices causes trial balance to change for closed accounting period.

This happens in the case where foreign payments are present. The tb essentially gets altered because of the forex gain / loss entry passed as on the payment entry date which is incorrect. It should be as on current date if the payment entry is within a closed period.