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

Remove Tax Rate trailing zeros for display in Confirm / Thankyou forms

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.24
    • Fix Version/s: 4.7.28
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No
    • How it works currently:
      Tax rate is displayed with 8 decimal places: eg. 20.00000000%, 3.50000000%
    • How it should work:
      Tax rate is displayed with no trailing zeros: eg. 20%, 3.5%
    • Acceptance Criteria:
      Tax rate is displayed properly. This PR should be tested on a couple of sites with tax and invoicing enabled.

      Description

      Separated from CRM-20852 so that can be merged as Confirm/Thankyou pages don't have test coverage.  I'm pretty certain this change has no impact as it's only touching display code.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mattwire Matthew Wire
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: