Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1483

Remove extraneous zeros when formatting tax rates for display

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-b1
    • Component/s: Plugins, Staff Interface
    • Labels:
      None

      Description

      A tax rate of 15% may be displayed as 15.0000% as we maintain 4 decimal precision, however tax rates are typically never displayed this way.

      Consider using floatval() to remove the extra zeros.

      Suggested here - http://www.blesta.com/forums/index.php?/topic/3564-format-tax-rate/

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Summary Remove extraneous zero's when formatting tax rates for display Remove extraneous zeros when formatting tax rates for display
        admin Paul Phillips made changes -
        Fix Version/s Short Term [ 10800 ]
        admin Paul Phillips made changes -
        Rank Ranked higher
        admin Paul Phillips made changes -
        Assignee Cody Phillips [ cody ] Jonathan Reissmueller [ jonathan ]
        Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        Automated transition triggered when Jonathan Reissmueller created pull request #157 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Fix Version/s 4.0.0 [ 10603 ]
        Fix Version/s Short Term [ 10800 ]
        tyson Tyson Phillips (Inactive) made changes -
        Story Points 2
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.0.0 Sprint 9 [ 27 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.0.0 Sprint 9 [ 27 ] 4.0.0 Sprint 9, 4.0.0 Sprint 10 [ 27, 28 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #157 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Sep/16

              Agile