summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main.pm
diff options
context:
space:
mode:
authorivan <ivan>2009-10-08 06:00:18 +0000
committerivan <ivan>2009-10-08 06:00:18 +0000
commitce7044bb1112c7d50d2fc4b1e2b3676a87a7847d (patch)
treebd414649eca8aee161fc4d53a98729ece4b1e9ce /FS/FS/cust_main.pm
parentbb8d487a57a75d8d55c89c5f7cb593c4bfeace85 (diff)
freeside-daily -g and -m cooperation (and no HASH() queue noise with -m)
Diffstat (limited to 'FS/FS/cust_main.pm')
-rw-r--r--FS/FS/cust_main.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 8ec1275..8dcbd8d 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -2462,7 +2462,7 @@ An array ref of specific packages (objects) to attempt billing, instead trying a
=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 @@ sub bill {
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';