<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:15:34 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-259] $cost always logged as 0 in astpp.cdr.php</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-259</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;Need to move logger line below assignment of $cost?  As is $cost has the value of 0 that&apos;s assigned at the top of file.&lt;/p&gt;

&lt;p&gt;	// Calculate parent cost if customer have any parent&lt;br/&gt;
	$parent_cost = ($parentid &amp;gt; 0) ? calc_cost ( $dataVariable, $origination_rate &lt;span class=&quot;error&quot;&gt;&amp;#91;$parentid&amp;#93;&lt;/span&gt;, $logger, $decimal_points ) : $provider_cost;&lt;br/&gt;
	$logger-&amp;gt;log ( &quot;Parent - Debit :&quot; . $debit . &quot; Cost : &quot; . $cost . &quot; Provider Cost : &quot; . $parent_cost );&lt;/p&gt;

&lt;p&gt;	// Initialize final cost variable to use for billing&lt;br/&gt;
	$cost = ($parent_cost &amp;gt; 0) ? $parent_cost : $provider_cost;&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment></environment>
        <key id="12079">ASTPPCOM-259</key>
            <summary>$cost always logged as 0 in astpp.cdr.php</summary>
                <type id="10000" iconUrl="https://jira.astppbilling.org/secure/viewavatar?size=xsmall&amp;avatarId=10318&amp;avatarType=issuetype">Task</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="-1">Unassigned</assignee>
                                    <reporter username="alexheylin">alexheylin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Nov 2017 14:28:47 +0530</created>
                <updated>Wed, 14 Feb 2018 22:51:06 +0530</updated>
                            <resolved>Wed, 14 Feb 2018 22:51:06 +0530</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="13060" author="alexheylin" created="Thu, 9 Nov 2017 14:31:42 +0530"  >&lt;p&gt;Should it also be below&lt;br/&gt;
// Outbound call entry for all type of calls&lt;br/&gt;
	$logger-&amp;gt;log ( &quot;_********** OUTBOUND CALL ENTRY START _&quot; );&lt;br/&gt;
?&lt;/p&gt;</comment>
                            <comment id="13061" author="smrdoshi" created="Wed, 15 Nov 2017 14:24:38 +0530"  >&lt;p&gt;I don&apos;t understand what difference will it make if we will move longer to other line? &lt;/p&gt;

&lt;p&gt;Are you getting $cost 0 in CDR or just in logger?&lt;/p&gt;</comment>
                            <comment id="13062" author="alexheylin" created="Wed, 15 Nov 2017 15:01:13 +0530"  >&lt;p&gt;I was getting zero cost in CDR (now fixed) but as it is now, the logger&lt;br/&gt;
reports zero all the time. I know it&apos;s minor but wouldn&apos;t it be better if&lt;br/&gt;
the logger was accurate?&lt;br/&gt;
Thanks Samir&lt;br/&gt;
Alex&lt;/p&gt;


&lt;p&gt;On 15 Nov 2017 08:54, &quot;Samir Doshi&quot; &amp;lt;notifications@github.com&amp;gt; wrote:&lt;/p&gt;

&lt;p&gt;I don&apos;t understand what difference will it make if we will move longer to&lt;br/&gt;
other line?&lt;/p&gt;

&lt;p&gt;Are you getting $cost 0 in CDR or just in logger?&lt;/p&gt;

&lt;p&gt;&#8212;&lt;br/&gt;
You are receiving this because you authored the thread.&lt;br/&gt;
Reply to this email directly, view it on GitHub&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://github.com/iNextrix/ASTPP/issues/259#issuecomment-344526607&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/issues/259#issuecomment-344526607&lt;/a&gt;&amp;gt;, or mute&lt;br/&gt;
the thread&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://github.com/notifications/unsubscribe-auth/AAQifb4vw3jzG7IVyAYOA0GC7hmSUavKks5s2qbPgaJpZM4QXoIE&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/notifications/unsubscribe-auth/AAQifb4vw3jzG7IVyAYOA0GC7hmSUavKks5s2qbPgaJpZM4QXoIE&lt;/a&gt;&amp;gt;&lt;br/&gt;
.&lt;/p&gt;</comment>
                            <comment id="13063" author="smrdoshi" created="Wed, 15 Nov 2017 16:04:46 +0530"  >&lt;p&gt;Ah ok. Got your point. &lt;br/&gt;
Will do needful. &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>259</customfieldvalue>

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

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