I created a code that copies the value of the source currency field ( object A ) to destination currency field ( Object B )
What happens is that this code
Decimal A = A.currencyfield;
B.field = A;
copies the exact numeric value but changes the currency of the destination field to the user's default currency.
example: source is EUR 1.00 but the destination becomes US$1.00. it doesnt either convert the value or keep the currency format.
Any idea how to keep the currency during field update?
Appreciate your input on this.
Thanks in Advance.