Thank-you letter incorrect contribution currency
Steps to replicate:
- Enter a contribution with a currency that is not the default.
- Using any method that supports contribution tokens (Thank-you letter print or email, CiviRules, etc.) use one of the following tokens:
{contribution.total_amount} {contribution.fee_amount} {contribution.net_amount}
.
Expected result The token displays the amount formatted to the currency of the contribution.
Actual result The token displays the amount formatted to the default currency.
[Original message follows].
My setup: CiviCRM 5.20.0 on Drupal 7.
I entered contributions in different currencies. In Find Contributions, check some entries. At Actions select Thank-you letter print or email.
I put tokens Contributions:
{contribution.currency} {contribution.total_amount} {contribution.fee_amount} {contribution.net_amount}
and it gives me lines like these:
CNY HK$ 1,299.90 HK$ 0.00 HK$ 1,299.90
GBP HK$ 500.00 HK$ 0.00 HK$ 500.00
where CNY and GBP are the currencies of those contributions and HK$ is the symbol of the default currency.
It seems the amounts variables just took the system default, rather than contributions' currencies.
Thank you.
Original post at https://civicrm.stackexchange.com/questions/34031/thank-you-letter-incorrect-contribution-currency