[freeside-commits] freeside/FS/FS cust_main.pm, 1.464.2.29, 1.464.2.30
Ivan,,,
ivan at wavetail.420.am
Sat Jun 5 19:27:45 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv19497
Modified Files:
Tag: FREESIDE_1_9_BRANCH
cust_main.pm
Log Message:
log customer with queued billing jobs, RT#8282
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.464.2.29
retrieving revision 1.464.2.30
diff -u -w -d -r1.464.2.29 -r1.464.2.30
--- cust_main.pm 20 May 2010 01:34:19 -0000 1.464.2.29
+++ cust_main.pm 6 Jun 2010 02:27:42 -0000 1.464.2.30
@@ -9625,14 +9625,23 @@
}
+=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
More information about the freeside-commits
mailing list