Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 23, 2024 12:18 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: a2billing_bill_diduse.php -
PostPosted: Tue Aug 25, 2009 6:27 am 
Offline

Joined: Fri Jul 24, 2009 1:06 pm
Posts: 1
Morning all,
is it just me or has someone else come across the problem that CRON job a2billing_bill_diduse.php is charging users that have free DID's assigned to them. For instance I have a monthly charge rate assigned to a DID of $10 (for reference purposes). However I specify Free in the billing but it still goes ahead bills the calling card the amount stated in the MRC.

Looking at the SQL it seems there isnt an exclusion for billingtype = 3 (IE Free). When enumerating the DID's it's including the free ones.

Making a minor change to the Cron job seems to have fixed it ....

"SELECT id_did, reservationdate, month_payed, fixrate, cc_card.id, credit, email, did, typepaid, cc_did.billingtype,creditlimit,reminded FROM (cc_did_use INNER JOIN cc_card on cc_card.id=id_cc_card) INNER JOIN cc_did ON (id_did=cc_did.id) WHERE ( releasedate IS NULL OR releasedate < '1984-01-01 00:00:00') AND cc_did_use.activated=1 AND cc_did.billingtype <> '3' ORDER BY cc_card.id ASC"

A minor issue i know...

cheers

mike


Top
 Profile  
 
 Post subject: Re: a2billing_bill_diduse.php -
PostPosted: Tue Aug 25, 2009 6:13 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
Thanks for the report Mike!

just fixed in rev 2339
http://www.asterisk2billing.org/cgi-bin ... geset/2339

Cheers,
/Areski


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 12 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group