X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_tax_adjustment.html;h=6125a1c04dbd482000dacbf77090bcf4b33d0a72;hp=dfc638e8b79516d98b28bc20351e1de08e545361;hb=b71b1576c68bc40ad26592b354feace37a029f0e;hpb=fa19c2c557f7abd72f94357373290b99dd3297bf diff --git a/httemplate/search/cust_tax_adjustment.html b/httemplate/search/cust_tax_adjustment.html index dfc638e8b..6125a1c04 100644 --- a/httemplate/search/cust_tax_adjustment.html +++ b/httemplate/search/cust_tax_adjustment.html @@ -1,4 +1,4 @@ -<% include( 'elements/search.html', +<& elements/search.html, 'title' => $title, 'name_singular' => 'tax adjustment', 'query' => $query, @@ -12,9 +12,8 @@ }, ], 'links' => [ '', '', '', $ilink ], - ) -%> - + +&> <%init> die "access denied" @@ -27,11 +26,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';