From: ivan Date: Thu, 25 Jun 2009 19:06:24 +0000 (+0000) Subject: fix tax adjustment report X-Git-Tag: root_of_svc_elec_features~1094 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=68bd008fa291965cf720e6cc578f98de063e02f2 fix tax adjustment report --- 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';