[freeside] Grace periods?

Kristian Hoffmann khoff at pc-intouch.com
Thu Dec 7 09:37:56 PST 2000


I've posted a 'disable-overdue' script.  It suspends all accounts that are
overdue n days.  Search the archives for it.  I'll post it again if you
can't find it.

-Kristian Hoffmann
<khoff at pc-intouch.com>

On Thu, 7 Dec 2000, ivan wrote:

> On Wed, Dec 06, 2000 at 01:20:14PM -0800, Brad Dameron wrote:
> > 
> > 	Hey Ivan,
> > 
> > 	I there a way to setup a grace period on dialup accounts? As in if
> > they are 14 days passed due on their payment then their account becomes
> > disabled until paid?
> 
> Sure.  Just write a cron job that checks for accounts with a balance
> greater than zero, but no invoices in the last 14 days, and then suspends
> all their packages.  See the FS::cust_main, FS::cust_bill, and
> FS::cust_pkg manpages.
> 
> > 	Also, if I write some code in PHP would you be willing to use it
> 
> Probably not.  Database modifications should only be done through the Perl
> FS::table_name interface, which isn't available from PHP.
> 
> > or are you only using CGI?
> 
> Currently, CGI that also works (and sometimes caches for efficiency) under
> mod_perl's Apache::Registry.  Future direction is a template-based system
> that will run under HTML::Mason, Apache::ASP or eperl.
> 
> > I am currently rewriting the authentication
> > system so that way it will show the user logged in as well as not allow
> > the user to even see the home page without being in the mapsecrets
> > file. Pretty much removing the usage of the .htaccess file. I almost have
> > the home page complete rewritten to make it very simple for users to use.
> > 
> > 	Please let me know.
> > 
> > Thank you,
> > Brad Dameron
> > TSCNet Online Services
> > 
> 
> -- 
> meow
> _ivan
> 




More information about the freeside-users mailing list