Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 2:14 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Call rates with 4 decimals
PostPosted: Thu Jun 30, 2011 6:40 pm 
Offline

Joined: Thu Jun 30, 2011 6:23 pm
Posts: 27
Hello,

I am trying out A2billng with a motive to resell minutes to select customers. I have everything set up correctly, I am able to call out, the CDRs show the calls fine. Everything is fine except one thing...

Please check the screenshot. As you can see, my sample buying rate is 0.007 and the selling rate is 0.008 for 12/6 billing. If you check the Buy and Sell rates on the right, they show the same which is 0.003. Does this mean that I made no profit on this call? In order for it work in this case, I think there should be 4 decimal values like 0.0032 instead of 0.003. Is there a way I can change this?

Please advise. Thanks.


Attachments:
File comment: CDR sample
Selection_001.png
Selection_001.png [ 12.59 KiB | Viewed 2589 times ]
Top
 Profile  
 
 Post subject: Re: Call rates with 4 decimals
PostPosted: Tue Aug 09, 2011 10:22 pm 
Offline

Joined: Wed Apr 27, 2011 7:04 pm
Posts: 30
edit
/var/www/html/consumos/lib/Misc.php

function display_2dec($var){
echo number_format($var,3);
}


change

function display_2dec($var){
echo number_format($var,4);
}

save

eureka you have 4 decimales


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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