summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_pkg.cgi
diff options
context:
space:
mode:
authorivan <ivan>2003-09-15 21:33:03 +0000
committerivan <ivan>2003-09-15 21:33:03 +0000
commit32ba5c8d264479a302c1524165d708ce11243d69 (patch)
tree14627cab915cac5adab5950c05aa3e3cad4781f5 /httemplate/search/cust_pkg.cgi
parent85e1e6cd17d746818ad898bdac7c48de91398b2b (diff)
package search skips cancelled packages when searching by date range
Diffstat (limited to 'httemplate/search/cust_pkg.cgi')
-rwxr-xr-xhttemplate/search/cust_pkg.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index 8b2fd0ca0..f735fbf42 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -33,6 +33,8 @@ if ( $cgi->param('magic') && $cgi->param('magic') eq 'bill' ) {
$range .= ( $range ? ' AND ' : ' WHERE ' ). " bill <= $ending ";
}
+ $range .= ( $range ? 'AND ' : ' WHERE ' ). '( cancel IS NULL OR cancel = 0 )';
+
#false laziness with below
my $statement = "SELECT COUNT(*) FROM cust_pkg $range";
warn $statement;