Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
F
Financial
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Development
  • Financial
  • Issues
  • #111

Closed
Open
Created Dec 12, 2019 by kleehk@kleehk

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
Edited Oct 08, 2020 by JonGold
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
5.32.0
Milestone
5.32.0
Assign milestone
Time tracking
None
Due date
None