my $self = shift;
my $opt = ref($_[0]) ? shift : { @_ };
+ local($DEBUG) = $FS::cust_main::DEBUG if $FS::cust_main::DEBUG > $DEBUG;
+
warn "$me order_pkg called with options ".
join(', ', map { "$_: $opt->{$_}" } keys %$opt ). "\n"
if $DEBUG;
my %options = @_;
$seconds_ref ||= $options{'seconds_ref'};
+ local($DEBUG) = $FS::cust_main::DEBUG if $FS::cust_main::DEBUG > $DEBUG;
+
warn "$me order_pkgs called with options ".
join(', ', map { "$_: $options{$_}" } keys %options ). "\n"
if $DEBUG;
my $self = shift;
my $extra_qsearch = ref($_[0]) ? shift : {};
+ local($DEBUG) = $FS::cust_main::DEBUG if $FS::cust_main::DEBUG > $DEBUG;
+
return $self->num_ncancelled_pkgs unless wantarray;
my @cust_pkg = ();