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:
- Enter the API explorer.
- Choose the FinancialItem entity
- Change the action to create
- For the parameter, select Financial Item Currency
- 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.