convert_currency functionLast Updated: September 16, 2019
convert_currency converts an amount from one currency to another. It accepts an amount, a destination currency code, and a conversion date.
convert_currency(amount, destination_currency_code, date)
- amount: a number
- destination_currency_code: this is one of a list of standard currency codes that Spiff supports ("USD", "CAD", etc.). This should correspond to the target currency into which you want to transform the amount.
- date: date
convert_currency(deal.amount, "EUR", date("2018-07-11")) => €88.63