[freeside-commits] freeside/FS/FS/Cron bill.pm,1.29,1.29.2.1

Ivan,,, ivan at wavetail.420.am
Sun Nov 15 18:27:16 PST 2009


Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv30453/FS/FS/Cron

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	bill.pm 
Log Message:
add disable_cron_billing config, RT#6407

Index: bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/bill.pm,v
retrieving revision 1.29
retrieving revision 1.29.2.1
diff -u -d -r1.29 -r1.29.2.1
--- bill.pm	8 Oct 2009 06:00:18 -0000	1.29
+++ bill.pm	16 Nov 2009 02:27:14 -0000	1.29.2.1
@@ -34,6 +34,12 @@
   $FS::cust_main::DEBUG = $debug;
   #$FS::cust_event::DEBUG = $opt{'l'} if $opt{'l'};
 
+  my $conf = new FS::Conf;
+  if ( $conf->exists('disable_cron_billing') ) {
+    warn "disable_cron_billing set, skipping billing\n" if $debug;
+    return;
+  }
+
   #we're at now now (and later).
   $opt{'time'} = $opt{'d'} ? str2time($opt{'d'}) : $^T;
   $opt{'time'} += $opt{'y'} * 86400 if $opt{'y'};



More information about the freeside-commits mailing list