Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 1:23 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: bug in batch invoicing
PostPosted: Wed Nov 04, 2009 6:11 am 
Offline
User avatar

Joined: Sat Mar 28, 2009 5:50 am
Posts: 96
The issue is with the date in batch invoicing.

For instance, if the invoice day is set to 1 (first day of month) then ideally, the total amount on the generated invoice should be "total amount of all calls bewtween from 1-10-2009 00:00:00 to 31-10-2009 00:00:00.

However, when the cronjob ran at 1-11-2009 7:00 AM, the invoice included "total amount of all calls upto 1-11-2009 07:00AM". The calls made between 1-11-2009 00:00:01 to 1-11-2009 07:00:00 do not belong to this invoice but to the next months invoice.

hope you understand.


Thanks


Top
 Profile  
 
 Post subject: Re: bug in batch invoicing
PostPosted: Wed Nov 04, 2009 6:24 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Run the cronjob at midnight.

Joe


Top
 Profile  
 
 Post subject: Re: bug in batch invoicing
PostPosted: Wed Nov 04, 2009 7:27 am 
Offline
User avatar

Joined: Sat Mar 28, 2009 5:50 am
Posts: 96
mid night is a busy time, and server gets overloaded.

i believe whatever time you choose to run it, the query shall always extract records from db, NOT going above midnight.

this is how all telcos provide you with bills, i.e. until midnight (when the date is changed then all calls after that belongs to the next month bill)

Thanks


Top
 Profile  
 
 Post subject: Re: bug in batch invoicing
PostPosted: Wed Nov 04, 2009 7:34 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
In my experience, the large tier one telco's (Colt, Verizon, etc) invoice every available call at the time of running the report, and I think it is desirable for cash flow reasons to invoice everything you can invoice.

If the server is overloaded or close to overloaded at any point, then it may be a time to revisit the architecture, and do some optimisation.

If running the invoices cronjob at the time that you want the invoices produced is not a pragmatic solution, then you would have to hack about in the code.

Joe


Top
 Profile  
 
 Post subject: Re: bug in batch invoicing
PostPosted: Thu Nov 05, 2009 4:43 am 
Offline
User avatar

Joined: Sat Mar 28, 2009 5:50 am
Posts: 96
Upgrading the server is not very ideal solution for generating invoices.

Hacking in the code is a good solution. Also, I believe this should be implemented in the main trunk as this should always be the default behaviour of invoicing (i.e. do not include calls after 12:00 AM as the date has now been changed.)


Thanks.


Top
 Profile  
 
 Post subject: Re: bug in batch invoicing
PostPosted: Thu Nov 05, 2009 6:41 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Quote:
Upgrading the server is not very ideal solution for generating invoices.


You inferred that I said you needed to upgrade your platform to generate invoices - What I said that if your server was close to overloaded, you should consider an upgrade. In the server world, the general rule of thumb is that when the server is at 50% capacity, double the capacity.

I would stand by my earlier comment, that you should be billing everything you can bill. You've paid, or have got to pay for the minutes, and with thousands of customers, the "opportunity cost" could be huge.

Many customers can be in different timezones, So do you go to the degree of looking at the customer's timezone to decide what CDR to bill? I'd say not - keep it simple, and bill everything.

The your issue can easily be fixed by changing the time of the cronjob, IMO, your traffic patterns are unusual to be so busy at Midnight, that you cannot run the invoice cronjob without potentially affecting the operation of your platform.

Given that this is a minor issue, really only applicable to you, as far as I can make out, I would not be recommending that this be put top of the priority list, there are plenty of other things to do. If it is an issue, and important to you, then you have the option of sponsoring the development of this feature.

Joe


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


All times are UTC


Who is online

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