Dear Nitin,
We cannot make it clear the customer open item automatically. since at the time of cleating system will validated the Amount field, the invoice and the payment should match each other.
Moreover we cannot post the exchange gain/loss automatically, since we cannot make a posting rule to achieve the same.
The only solution to clear the same manually.
Regards,
M S Lokesh