diff options
author | ivan <ivan> | 2010-06-06 02:27:42 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-06-06 02:27:42 +0000 |
commit | 36ed9a9b42e9e544fab07139069c40cbb5e0d5ab (patch) | |
tree | 417dba68f5bbbf5b578509cd9699f236968f2e8d | |
parent | 045317ec26f501428a9f0282beb52f463b8e927c (diff) |
log customer with queued billing jobs, RT#8282
-rw-r--r-- | FS/FS/cust_main.pm | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 267c0d2f0..0e04df3bc 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -9625,14 +9625,23 @@ sub _agent_plandata { } +=item queued_bill 'custnum' => CUSTNUM [ , OPTION => VALUE ... ] + +Subroutine (not a method), designed to be called from the queue. + +Takes a list of options and values. + +Pulls up the customer record via the custnum option and calls bill_and_collect. + +=cut + sub queued_bill { - ## actual sub, not a method, designed to be called from the queue. - ## sets up the customer, and calls the bill_and_collect my (%args) = @_; #, ($time, $invoice_time, $check_freq, $resetup) = @_; + my $cust_main = qsearchs( 'cust_main', { custnum => $args{'custnum'} } ); - $cust_main->bill_and_collect( - %args, - ); + warn 'bill_and_collect custnum#'. $cust_main->custnum. "\n";#log custnum w/pid + + $cust_main->bill_and_collect( %args ); } sub _upgrade_data { #class method |