CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Using CIVICRM or Precisely CIVIGRANT wit multiples currencies ??
Pages: [1]

Author Topic: Using CIVICRM or Precisely CIVIGRANT wit multiples currencies ??  (Read 488 times)

LeslieRD

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4..2
  • CMS version: Drupal 7
  • MySQL version: 5.X
  • PHP version: 5.X
Using CIVICRM or Precisely CIVIGRANT wit multiples currencies ??
April 29, 2013, 11:36:47 am
Hello all, while using CVIVIGRANT find out tha my company  has some need like while creating a grant I would like to be able to select the currency for both the amount Granted and the Amount Requested and after creating this been able to see the amount with their currency,

If no, could you lead me please ,  should I create a hook where I cant change the symbol of the currency base on a custom field that I'll have to create for specifing the currencies ? or something else ?

thank You.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Using CIVICRM or Precisely CIVIGRANT wit multiples currencies ??
May 08, 2013, 12:56:43 pm
There is a single currency field in the civicrm_grant table, but it's not exposed to the UI (and seems to be ignored when displaying amounts in the tab and view grant screens :-(

Given that the grant form supports two Amount Requested values (one is 'original currency') - it seems like the table should have 2 currency columns going forward.

If you want to handle this via an extension / with hooks in your current version - I guess you could use / expose the existing currency column for the Amount Requested, and add a custom field to store 'original currency'. Then you'll need to use the buildForm hook to add the 'built-in' currency field to the form (and maybe also move the custom field for original currency). I think you can use the pageRun hook on the grant listing(s) to fix the currency display.

Or you could consider putting together a patch for 4.4 that fixes all this in the core code, since we should be exposing and paying attention to currency.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Using CIVICRM or Precisely CIVIGRANT wit multiples currencies ??

This forum was archived on 2017-11-26.