Body: <p>I'm writing CRM extensions allowing to see clculated summary of transactions for each contact.</p>
  <p>Each currency has it's own custom group with set of custom fields.
  One of custom fields id total_contributions (data_type:Money) but problem starts when contact have contributions in other currency than default.</p>
  <p>Ex.
  Two tabs: Summary PLN, Summary USD, each has it's on custom group and fields set.
  Example contact made 200$ donation in USD, but default currency is PLN, in custom contact tab, with USD curency, there will be displayed &quot;200 zł&quot; wich is wrong, it should be 200$ but it will display bvalue in system default currency, because custom field has no option to set currency.</p>
  <p>I've checked hook <code>hook_civicrm_alterCustomFieldDisplayValue</code>  but it won't allow to change currency of displayed field.</p>
  <p>Any advice ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-10T19:23:31.817Z
Comments.Text: side comment about your goal of a "calculated summary" - are you aware of these https://civicrm.org/extensions/summary-fields, https://civicrm.org/extensions/joinerys-more-summary-fields and https://civicrm.org/extensions/synopsis just in case any of these
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-10T21:06:05.953Z
Comments.Text: @petednz-fuzion yes, we know them but we neded somethin way more faster :-)
Comments.UserDisplayName: Artur Śmigielski
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-14T18:10:43.673Z
Comments.Text: I agree it would be useful to be able to set currency per field. I don't think it's currently possible.
Comments.UserDisplayName: Noah Miller
Tags: <custom-fields>
Title: Is it possible to set a currency for a custom field (Money)
ThreadText: # Is it possible to set a currency for a custom field (Money)
  
  (Asked by: username_0 on 2023-03-10)
  
  I'm writing CRM extensions allowing to see clculated summary of transactions for each contact.
  
  Each currency has it's own custom group with set of custom fields.
  One of custom fields id total\_contributions (data\_type:Money) but problem starts when contact have contributions in other currency than default.
  
  Ex.
  Two tabs: Summary PLN, Summary USD, each has it's on custom group and fields set.
  Example contact made 200$ donation in USD, but default currency is PLN, in custom contact tab, with USD curency, there will be displayed "200 zł" wich is wrong, it should be 200$ but it will display bvalue in system default currency, because custom field has no option to set currency.
  
  I've checked hook `hook_civicrm_alterCustomFieldDisplayValue` but it won't allow to change currency of displayed field.
  
  Any advice ?
  
  **Tags:** custom-fields
  
  > **Comments:**
  > **username_1**: side comment about your goal of a "calculated summary" - are you aware of these https://civicrm.org/extensions/summary-fields, https://civicrm.org/extensions/joinerys-more-summary-fields and https://civicrm.org/extensions/synopsis just in case any of these  
  > **username_0**: @username_1 yes, we know them but we neded somethin way more faster :-)  
  > **username_2**: I agree it would be useful to be able to set currency per field. I don't think it's currently possible.  
  
  ---
  
  ## 0 answers
  
  