+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' );
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
=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
=head1 DESCRIPTION
@@ -64,7+68,7 @@ the bill and collect methods of a cust_main object. See L<FS::cust_main>.
"pretend date" 15 days from whatever was specified by the -d switch
(or now, if no -d switch was given).
"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
-a: Only process customers with the specified agentnum
@@ -74,7+78,7 @@ the bill and collect methods of a cust_main object. See L<FS::cust_main>.
-m: Experimental multi-process mode (delay upload jobs until billing jobs complete)
-m: Experimental multi-process mode (delay upload jobs until billing jobs complete)
-user: From the mapsecrets file - see config.html from the base documentation
+user: Typically "fs_daily"
custnum: if one or more customer numbers are specified, only bills those
customers. Otherwise, bills all customers.
custnum: if one or more customer numbers are specified, only bills those