Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 16, 2024 10:41 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Dashboard Call Info
PostPosted: Thu Aug 13, 2009 12:32 am 
Offline

Joined: Tue Aug 19, 2008 3:49 pm
Posts: 184
Hi,

I am not sure but the Dashboard Call Info seems to be way off for;

AMOUNT SELL TODAY :
AMOUNT BUY TODAY :
TOTAL TIME USED TODAY :

Does this show funky numbers for anyone else.

Kind Regards,

Les


Top
 Profile  
 
 Post subject: Re: Dashboard Call Info
PostPosted: Thu Aug 13, 2009 5:25 pm 
Offline

Joined: Tue Aug 19, 2008 3:49 pm
Posts: 184
I looked into this further and it appears that;

AMOUNT SELL TODAY : is actually displaying TOTAL TIME USED TODAY

AMOUNT BUY TODAY : is actually displaying AMOUNT SELL TODAY
TOTAL TIME USED TODAY : is actually displaying AMOUNT BUY TODAY

I am basing the last to on BUY meaning the price I buy it at.

Based on this, I think this is a small bug?

Kind Regards,

Les


Top
 Profile  
 
 Post subject: Re: Dashboard Call Info
PostPosted: Thu Aug 13, 2009 6:52 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
Which version do u use?
I think it s corrected on last trunk!

Cheers,
/Areski


Top
 Profile  
 
 Post subject: Re: Dashboard Call Info
PostPosted: Thu Aug 13, 2009 8:12 pm 
Offline

Joined: Tue Aug 19, 2008 3:49 pm
Posts: 184
areski wrote:
Which version do u use?
I think it s corrected on last trunk!

Cheers,
/Areski


Is there a way to find that on the system or do you just have to remember.

Anyway if I am looking at the correct file "calls_counts.php" mine is the same as the current trunk.

The following code around line 62 for "AMOUNT SELL TODAY" seems incorrect to me also.

($result_count_calls_buy == null){echo "0";}else{ echo $result_count_calls_times;}

I would think it would be something like:

($result_count_calls_sell == null){echo "0";}else{ echo $result_count_calls_sell;}

AMOUNT BUY TODAY and TOTAL TIME USED TODAY seem to have confused code also.

Am I confused or is the code?

Kind Regards,

Les


Top
 Profile  
 
 Post subject: Re: Dashboard Call Info
PostPosted: Fri Aug 14, 2009 3:45 pm 
Offline

Joined: Tue Aug 19, 2008 3:49 pm
Posts: 184
Hi,

In regards to Revision 2325: /trunk/admin/Public/modules

I downloaded http://svn.a2billing.net/svn/asterisk2b ... counts.php and change the code (see below) to correct the Dashboard CALLS INFO possible improper display of;

AMOUNT SELL TODAY
AMOUNT BUY TODAY
TOTAL TIME USED TODAY

It appear to display correctly with the adjustments. I am assuming sell means what I am selling it for and buy means what I am buying it for.

If I am incorrect, please let me know. If I am correct the adjustments should be made to the svn trunk.

Kind Regards,

Les

Code Adjustment around line 61:

From:

<?php echo gettext("AMOUNT SELL TODAY ");?>&nbsp;:&nbsp; <font style="color:#EE6564;" >
<?php if($result_count_calls_buy == null){echo "0";}else{ echo $result_count_calls_times;} ?> </font>&nbsp;<?php echo $A2B->config["global"]["base_currency"];?> <br/>

<?php echo gettext("AMOUNT BUY TODAY");?>&nbsp;:&nbsp; <font style="color:#EE6564;" >
<?php if($result_count_calls_buy == null){echo "0";}else{ echo $result_count_calls_sell;} ?> </font>&nbsp;<?php echo $A2B->config["global"]["base_currency"];?> <br/>

<?php echo gettext("TOTAL TIME USED TODAY");?>&nbsp;:&nbsp; <font style="color:#EE6564;" >
<?php if($result_count_calls_buy == null){echo "0";}else{ echo $result_count_calls_buy;} ?> </font>&nbsp;<?php echo gettext("sec");?> <br/>

To:

<?php echo gettext("AMOUNT SELL TODAY ");?>&nbsp;:&nbsp; <font style="color:#EE6564;" >
<?php if($result_count_calls_sell == null){echo "0";}else{ echo $result_count_calls_sell;} ?> </font>&nbsp;<?php echo $A2B->config["global"]["base_currency"];?> <br/>

<?php echo gettext("AMOUNT BUY TODAY");?>&nbsp;:&nbsp; <font style="color:#EE6564;" >
<?php if($result_count_calls_buy == null){echo "0";}else{ echo $result_count_calls_buy;} ?> </font>&nbsp;<?php echo $A2B->config["global"]["base_currency"];?> <br/>

<?php echo gettext("TOTAL TIME USED TODAY");?>&nbsp;:&nbsp; <font style="color:#EE6564;" >
<?php if($result_count_calls_times == null){echo "0";}else{ echo $result_count_calls_times;} ?> </font>&nbsp;<?php echo gettext("sec");?> <br/>


Top
 Profile  
 
 Post subject: Re: Dashboard Call Info
PostPosted: Tue Aug 25, 2009 5:48 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
Thanks for the report, I just corrected and added some improvements too.

see rev 2337

/Areski


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group