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

Add localization feature to support variable number of decimals on all money amounts depending on currency

    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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: