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 ?