Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 8:18 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: A2billing Account Recurring Service
PostPosted: Mon Oct 07, 2013 11:52 am 
Offline

Joined: Mon May 13, 2013 10:09 pm
Posts: 9
Hi,

I am trying to implement an account service that would deduct 'M' amount of credit if card has not been used for 'X' days every 'Y' days.

For example, deduct 1$ if account have not been used in 15 days every 15 days.

I have this cron job set :
0 12 * * * php /usr/share/a2billing/Cronjobs/a2billing_batch_process.php

It is set to run daily at 12.
Also I have an account service set like the image below:
Image

However, it is not working as intended. I can see in the logs that the cronjob is running on time, however, nothing is happening with the service. When I attempt to run the script manually like this:
Code:
php /usr/share/a2billing/Cronjobs/a2billing_batch_process.php


The script runs correctly, but the charge is deducted from random accounts and it is not detecting only those who have not used their accounts in the last 15 days.

I think I have misunderstood something in the above set up, please if possible explain how the script works, and how I should set it up to obtain the above required. Do I need to edit anything with the Cron Job date?

Thanks,
rshack


Top
 Profile  
 
 Post subject: Re: A2billing Account Recurring Service
PostPosted: Mon Oct 07, 2013 1:32 pm 
Offline

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

With the recurring type you have selected, there is no "Y" value, so whatever you enter in Period does not apply,

Joe


Top
 Profile  
 
 Post subject: Re: A2billing Account Recurring Service
PostPosted: Mon Oct 07, 2013 11:39 pm 
Offline

Joined: Mon May 13, 2013 10:09 pm
Posts: 9
Thank you for your reply.

So what should I set to achieve the following scenario:

"Deduct 1$ if account have not been used in last 15 days every 15 days."

Can the present script achieve this or do you suggest writing a new one for this function? If not, then what exactly is the "not used for X days" setting used for?

Your help is much appreciated and if I had to develop something I will sure share with the community.

Thanks,
Rshack


Top
 Profile  
 
 Post subject: Re: A2billing Account Recurring Service
PostPosted: Mon May 05, 2014 3:08 pm 
Offline

Joined: Wed Nov 25, 2009 12:01 pm
Posts: 90
jroper wrote:
Hi

With the recurring type you have selected, there is no "Y" value, so whatever you enter in Period does not apply,

Joe



Hi Joe,

Could elaborate on the x -value and the y - value? i'm facing similar problem. can't find anything on the documentation. does the x and y value goes in the same box?


Top
 Profile  
 
 Post subject: Re: A2billing Account Recurring Service
PostPosted: Mon May 05, 2014 3:35 pm 
Offline

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

Read the dropdown and substitute X and Y for the values you have put in X and Y.

Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 
Predictive Dialer


All times are UTC


Who is online

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