Details
-
Type: New Feature
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.7.20
-
Fix Version/s: Unscheduled
-
Component/s: CiviContribute
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
CiviCRM currently hardcodes the number of decimals in money amounts to 2, but other currencies support other numbers ranging from 0 to at least four; cryptocurrencies may support even more. Were funding available, it would be good to support this, preferrably via setting to enable it.
This would require extensive changes in core.
Perhaps it would be good to start by creating a hidden setting for number of decimals for monetary amount for currently selected currency and set it to 2. Then gradually start using it throughout codebase as edits are done over time.