X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_tax_adjustment.html;h=925476516f7e7050a021c19e2a6c3636cdb7ab9c;hb=64948ee373a03fa156ebc89cb39adfa6d4d2c3d5;hp=dfc638e8b79516d98b28bc20351e1de08e545361;hpb=fa19c2c557f7abd72f94357373290b99dd3297bf;p=freeside.git diff --git a/httemplate/search/cust_tax_adjustment.html b/httemplate/search/cust_tax_adjustment.html index dfc638e8b..925476516 100644 --- a/httemplate/search/cust_tax_adjustment.html +++ b/httemplate/search/cust_tax_adjustment.html @@ -27,11 +27,13 @@ my $count_query = 'SELECT COUNT(*) FROM cust_tax_adjustment'; my $hashref = {}; -my $custnum = $cgi->param('custnum'); -my $cust_main; -if ( $custnum ) { +my $custnum = ''; +my $cust_main = ''; +if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { + $custnum = $1; $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ); $hashref->{'custnum'} = $custnum; + $count_query .= " WHERE custnum = $custnum "; } my $title = 'Tax adjustments';