X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-monthly;h=431fbd86f2c9d1126f6d0822e796c2f1deba19a2;hb=fbdaf36fb33a44a453e23bc2dc8d18637b40dae9;hp=a6c75e715499e974ee38d80299f8e2243400ce7a;hpb=a9c8414692c1777da3ff78b83a1e6bbb0729f6eb;p=freeside.git diff --git a/FS/bin/freeside-monthly b/FS/bin/freeside-monthly index a6c75e715..431fbd86f 100755 --- a/FS/bin/freeside-monthly +++ b/FS/bin/freeside-monthly @@ -7,13 +7,16 @@ 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; use FS::Cron::bill qw(bill); -bill(%opt, 'freq'=>'1m' ); +bill(%opt, 'check_freq'=>'1m' ); + +use FS::Cron::upload qw(upload); +upload(%opt); ### # subroutines @@ -61,7 +64,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 (I, I, I, I, I, I, I) + -p: Only process customers with the specified payby (CARD, DCRD, CHEK, DCHK, BILL, COMP, LECB) -a: Only process customers with the specified agentnum @@ -69,7 +72,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.