X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-monthly;h=7be3776fc1ab3d45cb05909488261b9f4adebf22;hp=0d6ea14a2c504ebad24756bc5f4ec6001ec633de;hb=bb7e827141c9ed68f30765c9ca2ddcd1d760ad2d;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 diff --git a/FS/bin/freeside-monthly b/FS/bin/freeside-monthly index 0d6ea14a2..7be3776fc 100755 --- a/FS/bin/freeside-monthly +++ b/FS/bin/freeside-monthly @@ -7,11 +7,15 @@ use FS::UID qw(adminsuidsetup); &untaint_argv; #what it sounds like (eww) #use vars qw($opt_d $opt_v $opt_p $opt_a $opt_s $opt_y); use vars qw(%opt); -getopts("p:a:d:vsy:", \%opt); +getopts("p:a:d:vsy:m", \%opt); my $user = shift or die &usage; adminsuidsetup $user; +die "The -p option has been removed in version 4 -- customers no longer have ". + "a single, specific payment type" + if $opt{'p'}; + use FS::Cron::bill qw(bill); bill(%opt, 'check_freq'=>'1m' ); @@ -45,7 +49,7 @@ freeside-monthly - Run monthly billing and invoice collection events. =head1 SYNOPSIS - freeside-monthly [ -d 'date' ] [ -y days ] [ -p 'payby' ] [ -a agentnum ] [ -s ] [ -v ] user [ custnum custnum ... ] + freeside-monthly [ -d 'date' ] [ -y days ] [ -a agentnum ] [ -s ] [ -v ] user [ custnum custnum ... ] =head1 DESCRIPTION @@ -64,7 +68,7 @@ the bill and collect methods of a cust_main object. See L. "pretend date" 15 days from whatever was specified by the -d switch (or now, if no -d switch was given). - -p: Only process customers with the specified payby (CARD, DCRD, CHEK, DCHK, BILL, COMP, LECB) + -p: Deprecated, will produce a fatal error (formerly was: Only process customers with the specified payby (CARD, DCRD, CHEK, DCHK, BILL, COMP, LECB)) -a: Only process customers with the specified agentnum @@ -72,7 +76,9 @@ the bill and collect methods of a cust_main object. See L. -v: enable debugging -user: From the mapsecrets file - see config.html from the base documentation + -m: Experimental multi-process mode (delay upload jobs until billing jobs complete) + +user: Typically "fs_daily" custnum: if one or more customer numbers are specified, only bills those customers. Otherwise, bills all customers.