summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_pkg.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/cust_pkg.cgi')
-rwxr-xr-xhttemplate/search/cust_pkg.cgi8
1 files changed, 1 insertions, 7 deletions
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index c2f6272c4..74f584084 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -35,12 +35,6 @@ if ( $cgi->param('magic') && $cgi->param('magic') eq 'bill' ) {
$range .= ( $range ? 'AND ' : ' WHERE ' ). '( cancel IS NULL OR cancel = 0 )';
- if ( $cgi->param('agentnum') =~ /^(\d+)$/ and $1 ) {
- $range .= ( $range ? 'AND ' : ' WHERE ' ).
- "$1 = ( SELECT agentnum FROM cust_main".
- " WHERE cust_main.custnum = cust_pkg.custnum )";
- }
-
#false laziness with below
my $statement = "SELECT COUNT(*) FROM cust_pkg $range";
warn $statement;
@@ -223,7 +217,7 @@ if ( scalar(@cust_pkg) == 1 ) {
<TH><FONT SIZE=-1>Setup</FONT></TH>
END
- print '<TH><FONT SIZE=-1>Last<BR>bill</FONT></TH>'
+ print '<TH><FONT SIZE=-1>Next<BR>bill</FONT></TH>'
if defined dbdef->table('cust_pkg')->column('last_bill');
print <<END;