X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-overdue;h=116245f9cb2bd2523ada057109adb9426e1322a1;hp=8f7f872c8d9c9bd7f6835305dad428994800c179;hb=327df8aefdcf96c9c83805570abf4cc242cf46b9;hpb=5e25b996982d42eb2587ec54db0d5b39508aa730 diff --git a/FS/bin/freeside-overdue b/FS/bin/freeside-overdue index 8f7f872c8..116245f9c 100755 --- a/FS/bin/freeside-overdue +++ b/FS/bin/freeside-overdue @@ -13,7 +13,7 @@ use FS::UID qw(adminsuidsetup); &untaint_argv; my %opt; -getopts('ed:qplscbyoi', \%opt); +getopts('ed:qpl:scbyoi', \%opt); my $user = shift or die &usage; adminsuidsetup $user; @@ -92,9 +92,11 @@ foreach $cust_main ( qsearch('cust_main',{} ) ) { if ( $opt{o} ) { print "\n\tCollecting" unless $opt{q}; - my $error = $cust_main->collect( 'invoice_time'=>$now, - 'batch_card' => $opt{i} ? 'no' : 'yes', - ); + my $error = $cust_main->collect( + 'invoice_time' => $now, + 'batch_card' => $opt{i} ? 'no' : 'yes', + 'force_print' => 'yes', + ); warn "Error collecting from customer #" . $cust_main->custnum. ":$error" if $error; } @@ -113,7 +115,7 @@ sub untaint_argv { } sub usage { - die "Usage:\n\n freeside-overdue [ -e ] [ -d days ] [ -q ] [ -p ] [ -l amount ] [ -s ] [ -c ] user\n"; + die "Usage:\n\n freeside-overdue [ -e ] [ -d days ] [ -q ] [ -p ] [ -l amount ] [ -s ] [ -c ] [ -b ] [ -y ] [ -o [ -i ] ] user\n"; } @@ -127,6 +129,9 @@ freeside-overdue - Perform actions on overdue and/or expired accounts. =head1 DESCRIPTION +This script is deprecated in 1.4.0. You should use freeside-daily and invoice +events instead. + Performs actions on overdue and/or expired accounts. Selection options (at least one selection option is required):