[freeside-commits] freeside/FS/FS cust_main.pm,1.461,1.462

Ivan,,, ivan at wavetail.420.am
Wed Oct 7 23:00:20 PDT 2009


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

Modified Files:
	cust_main.pm 
Log Message:
freeside-daily -g and -m cooperation (and no HASH() queue noise with -m)

Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.461
retrieving revision 1.462
diff -u -d -r1.461 -r1.462
--- cust_main.pm	8 Oct 2009 05:44:40 -0000	1.461
+++ cust_main.pm	8 Oct 2009 06:00:18 -0000	1.462
@@ -2462,7 +2462,7 @@
 
 =item not_pkgpart
 
-A hashref of pkgparts to exclude from this billing run.
+A hashref of pkgparts to exclude from this billing run (can also be specified as a comma-separated scalar).
 
 =item invoice_time
 
@@ -2489,6 +2489,10 @@
   my $invoice_time = $options{'invoice_time'} || $time;
 
   $options{'not_pkgpart'} ||= {};
+  $options{'not_pkgpart'} = { map { $_ => 1 }
+                                  split(/\s*,\s*/, $options{'not_pkgpart'})
+                            }
+    unless ref($options{'not_pkgpart'});
 
   local $SIG{HUP} = 'IGNORE';
   local $SIG{INT} = 'IGNORE';



More information about the freeside-commits mailing list