-<% include( 'elements/search.html',
+<& elements/search.html,
'title' => $title,
'name_singular' => 'tax adjustment',
'query' => $query,
},
],
'links' => [ '', '', '', $ilink ],
- )
-%>
-
+
+&>
<%init>
die "access denied"
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';