5 use FS::UID qw( adminsuidsetup dbh );
6 use FS::Record qw(qsearchs);
9 adminsuidsetup( $user );
13 my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum })
14 or die "unknown custnum $custnum";
16 #foreach my $cust_bill ( $cust_main->open_cust_bill ) {
17 # print $cust_bill->invnum. "\n";
20 $FS::cust_main::Billing::DEBUG = 1;
22 $cust_main->bill_and_collect();
24 print dbh->sprintProfile, "\n";