Invoice & Payment Both in Non-base Currency

How to manage an invoice or bill has been paid with a currency other than the invoice or bill, and different to your base currency.