summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/cust_main.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 1766b4542..256eb732f 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -1883,11 +1883,12 @@ sub ncancelled_pkgs {
$self->custnum. "\n"
if $DEBUG > 1;
+ $extra_qsearch->{'extra_sql'} .= ' AND ( cancel IS NULL OR cancel = 0 ) ';
+
@cust_pkg = qsearch({
%$extra_qsearch,
'table' => 'cust_pkg',
'hashref' => { 'custnum' => $self->custnum },
- 'extra_sql' => ' AND ( cancel IS NULL OR cancel = 0 ) ',
});
}