Custom doctype exchange rate implementation


I have created one custom doctype and there i want to implement same exchange rate and currency functionality.

My requirement is when i will select customer then currency and exchange rate pricelist should automatically come there and in item table also whatever item_code we will select that rate should automatically converted in the currency of customer using price list for that customer. Price list has rates in INR.