Answers.Body: <p>Well - there's a bug worth reporting here, but I understand your priority is getting these letters out.  This should do the trick:</p>
  
  <ul>
  <li>Go to <strong>Administer menu » Localizations » Languages, Currency, Locations</strong>.</li>
  <li>Change <strong>Monetary Amount Display</strong> to <code>%a</code>.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-12T08:56:52.607Z
Answers.Text: Posted at https://lab.civicrm.org/dev/financial/issues/111
Answers.UserDisplayName: user9611631
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-10T03:59:56.213Z
Answers.LastActivityDate: 2019-12-10T03:59:56.213Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>My setup: CiviCRM 5.20.0 on Drupal 7.</p>
  
  <p>I entered contributions in different currencies.
  In Find Contributions, check some entries. At Actions select Thank-you letter print or email.</p>
  
  <p>I put tokens Contributions: </p>
  
  <p><code>{contribution.currency} {contribution.total_amount} {contribution.fee_amount} {contribution.net_amount}</code></p>
  
  <p>and it gives me lines like these:</p>
  
  <p>CNY HK$ 1,299.90 HK$ 0.00 HK$ 1,299.90</p>
  
  <p>GBP HK$ 500.00 HK$ 0.00 HK$ 500.00</p>
  
  <p>where CNY and GBP are the currencies of those contributions and HK$ is the symbol of the default currency.</p>
  
  <p>It seems the amounts variables just took the system default.</p>
  
  <p>Would you suggest some work-around? e.g. how to strip the wrong currency symbol.</p>
  
  <p>Thank you.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-10T03:01:01.050Z
Comments.Text: I tried qualifiers like |replace:'HK$':'' but it breaks the smarty tag.
Comments.UserDisplayName: user9611631
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-17T09:22:56.887Z
Comments.Text: I did this: At CRM/Utils/Token.php line 1814 add a format parameter '%a' as a quick an dirty fix. Obviously future updates will overwrite my code. How can I make my code update-safe?
Comments.UserDisplayName: user9611631
Tags: <contributions><message-templates><smarty><currency>
Title: Thank-you letter incorrect contribution currency
ThreadText: # Thank-you letter incorrect contribution currency
  
  (Asked by: username_0 on 2019-12-10)
  
  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.
  
  Would you suggest some work-around? e.g. how to strip the wrong currency symbol.
  
  Thank you.
  
  **Tags:** contributions, message-templates, smarty, currency
  
  > **Comments:**
  > **username_0**: I tried qualifiers like |replace:'HK$':'' but it breaks the smarty tag.  
  > **username_0**: I did this: At CRM/Utils/Token.php line 1814 add a format parameter '%a' as a quick an dirty fix. Obviously future updates will overwrite my code. How can I make my code update-safe?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-12-10. Score: 3 | Accepted answer
  
  Well - there's a bug worth reporting here, but I understand your priority is getting these letters out. This should do the trick:
  
  * Go to **Administer menu » Localizations » Languages, Currency, Locations**.
  * Change **Monetary Amount Display** to `%a`.
  
  > **Comments:**
  > **username_0**: Posted at https://lab.civicrm.org/dev/financial/issues/111  
  
  ---
  
  