[freeside-commits] freeside/FS/FS Schema.pm, 1.68, 1.69 cust_main.pm, 1.301, 1.302
Jason Hall
jayce at wavetail.420.am
Thu Sep 27 11:24:35 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv4942/FS
Modified Files:
Schema.pm cust_main.pm
Log Message:
Multi-System Billing:
with a -m flag, daily will queue billing jobs instead of running each. freeside-queued will then pick it up, allowing multiple simultaneous jobs to run, as well as multiple machines.
Also adds a 'Secure' column to the queue system, allowing for billing jobs to define themselves as 'secure only' in cases where a box might be using the encryption. This allows you to
run secure only jobs (such as a collect) on boxes that can.
Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- Schema.pm 24 Sep 2007 15:47:48 -0000 1.68
+++ Schema.pm 27 Sep 2007 18:24:32 -0000 1.69
@@ -1156,6 +1156,7 @@
'status', 'varchar', '', $char_d, '', '',
'statustext', 'text', 'NULL', '', '', '',
'svcnum', 'int', 'NULL', '', '', '',
+ 'secure', 'char', 'NULL', 1, '', '', # Y = recur tax exempt
],
'primary_key' => 'jobnum',
'unique' => [],
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.301
retrieving revision 1.302
diff -u -d -r1.301 -r1.302
--- cust_main.pm 17 Sep 2007 21:12:58 -0000 1.301
+++ cust_main.pm 27 Sep 2007 18:24:32 -0000 1.302
@@ -5822,6 +5822,16 @@
}
+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,
+ );
+}
+
=back
=head1 BUGS
More information about the freeside-commits
mailing list