Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18416

Developer API Explorer Financial Item displays wrong parameter for Currency

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.6
    • Fix Version/s: 4.7.7
    • Component/s: CiviCRM API
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      Here are the steps to see the problem:

      1. Enter the API explorer.
      2. Choose the FinancialItem entity
      3. Change the action to create
      4. For the parameter, select Financial Item Currency
      5. In the select, choose US Dollar

      In the example code, it shows that currency should be 840. However, if you use this, you get a 'Currency not a valid code' error. Looking at the civicrm_financial_item table showed me that the currency name, not its numeric code is used. So the API should use USD instead.

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              loganbear Logan Bear
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m