diff options
author | ivan <ivan> | 2009-06-25 19:06:24 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-06-25 19:06:24 +0000 |
commit | 68bd008fa291965cf720e6cc578f98de063e02f2 (patch) | |
tree | 55b1639534f9b6f8cd874a0066c1eb057f142a73 /httemplate/search | |
parent | fa19c2c557f7abd72f94357373290b99dd3297bf (diff) |
fix tax adjustment report
Diffstat (limited to 'httemplate/search')
-rw-r--r-- | httemplate/search/cust_tax_adjustment.html | 8 |
1 files changed, 5 insertions, 3 deletions
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'; |