I need help regarding the following issue;

I want to post the revaluation of customers and vendors to their accounts so, if, for example, I have a customer balance of 1000 USD that equals 400 EUR(local currency), but at revaluation, it equals 450 EUR, then I want to have after revaluation updated figures as follows 1000 USD and 450 EUR on his account....how to do that ??