4 <% $cgi->redirect(popurl(2). "view/cust_main.cgi?$custnum") %>
9 unless $FS::CurrentUser::CurrentUser->access_right('Bill customer now');
12 my($query) = $cgi->keywords;
15 my $cust_main = qsearchs('cust_main',{'custnum'=>$custnum});
16 die "Can't find customer!\n" unless $cust_main;
18 my $conf = new FS::Conf;
20 my $error = $cust_main->bill_and_collect( 'fatal' => 'return',
24 #'invoice-time'=>$time,
25 #'batch_card'=> 'yes',
27 #'report_badcard'=> 'yes',
28 #'retry_card' => 'yes',
30 #this is used only by cust_main::batch_card
31 #need to pick & create an actual config
32 #value if we're going to turn this on
33 #("realtime-backend" doesn't exist,
34 # "backend-realtime" is for something
36 #'realtime' => $conf->exists('realtime-backend'),