<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:13:55 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Jira</title>
    <link>https://jira.astppbilling.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.13.3</version>
        <build-number>813003</build-number>
        <build-date>14-01-2021</build-date>
    </build-info>


<item>
            <title>[ASTPPCOM-72] Chart cannot display profit larger than 1000</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-72</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;The dashboard chart does not display profit correctly if value is larger than 1000 as Highchart does not handle the thousand separator correctly. Example:&lt;/p&gt;

&lt;p&gt;Profit value = 1200.00&lt;br/&gt;
With LOCALE en_US thousand separator is &quot;,&quot;&lt;br/&gt;
This makes the chart value 1,200.00&lt;/p&gt;

&lt;p&gt;The chart will show 1 and not 1,200.00 as it breaks the value after the &quot;,&quot;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="11892">ASTPPCOM-72</key>
            <summary>Chart cannot display profit larger than 1000</summary>
                <type id="10201" iconUrl="https://jira.astppbilling.org/secure/viewavatar?size=xsmall&amp;avatarId=10700&amp;avatarType=issuetype">New Feature</type>
                                                <status id="10001" iconUrl="https://jira.astppbilling.org/images/icons/status_generic.gif" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="samir.doshi">Samir Doshi</assignee>
                                    <reporter username="fozzygo4">fozzygo4</reporter>
                        <labels>
                            <label>approved</label>
                            <label>bug_confirmed</label>
                            <label>bug_fixed</label>
                            <label>new_bug</label>
                    </labels>
                <created>Mon, 22 Aug 2016 03:25:06 +0530</created>
                <updated>Thu, 1 Apr 2021 19:02:11 +0530</updated>
                            <resolved>Thu, 1 Apr 2021 19:02:11 +0530</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="12626" author="dev-astpp" created="Mon, 22 Aug 2016 11:18:57 +0530"  >&lt;p&gt;As we check in our system it display correct value for all dashboard graph. So can you please provide screenshot?&lt;/p&gt;</comment>
                            <comment id="12627" author="fozzygo4" created="Mon, 22 Aug 2016 12:40:09 +0530"  >&lt;p&gt;Ok see screenshots. I am only displaying the profit line on the graph in this example. I have changed line 133 on /astpp/application/modules/dashboard/controllers/dashboard.php and removed the currency function from profit to make it work correctly. Line 133 is commented out for line 134.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;          &lt;span class=&quot;code-comment&quot;&gt;//$json_data[&lt;span class=&quot;code-quote&quot;&gt;&apos;profit&apos;&lt;/span&gt;][]=  array((string)$acc_arr[$day][&lt;span class=&quot;code-quote&quot;&gt;&apos;day&apos;&lt;/span&gt;],(&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;) $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;common_model-&amp;gt;calculate_currency($acc_arr[$day][&lt;span class=&quot;code-quote&quot;&gt;&apos;profit&apos;&lt;/span&gt;]));
&lt;/span&gt;          $json_data[&lt;span class=&quot;code-quote&quot;&gt;&apos;profit&apos;&lt;/span&gt;][]=  array((string)$acc_arr[$day][&lt;span class=&quot;code-quote&quot;&gt;&apos;day&apos;&lt;/span&gt;],(&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;) $acc_arr[$day][&lt;span class=&quot;code-quote&quot;&gt;&apos;profit&apos;&lt;/span&gt;]);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Day 10 is showing 1 ZAR as profit but it should be 1186.34 ZAR. Day 8 and any other day that is bellow 1000 displays correct because there is no , for a thousand separator.&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://cloud.githubusercontent.com/assets/20914943/17846227/a17a520e-6847-11e6-93eb-aeda310a82dd.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Once I applied the code above to not run the currency function, it displays the graph correctly because there is no , thousand separator.&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://cloud.githubusercontent.com/assets/20914943/17846304/0e77b216-6848-11e6-92f2-f49f4785af49.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="12628" author="dev-astpp" created="Sat, 10 Sep 2016 09:47:28 +0530"  >&lt;p&gt;Fixed. Please take latest source and test it out.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10703" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>72</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10006" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0092v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>