4 my($query) = $cgi->keywords;
7 my $cust_main = qsearchs('cust_main',{'custnum'=>$custnum});
8 die "Can't find customer!\n" unless $cust_main;
10 my $error = $cust_main->bill(
13 #&eidiot($error) if $error;
16 $cust_main->apply_payments;
17 $cust_main->apply_credits;
19 $error = $cust_main->collect(
20 # 'invoice-time'=>$time,
21 # 'batch_card'=> 'yes',
23 'report_badcard'=> 'yes',
26 #&eidiot($error) if $error;
34 print $cgi->redirect(popurl(2). "view/cust_main.cgi?$custnum");