diff options
author | ivan <ivan> | 2008-11-02 20:28:09 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-11-02 20:28:09 +0000 |
commit | af0bf34fadc9bb398e54560657dce51987c975a9 (patch) | |
tree | d7a959fc7b19e3898c71171bc3833930a7175ba5 /httemplate/search/cust_bill_pkg.cgi | |
parent | 54e6a299668387fd2b0256e8ec0ed10f5caea871 (diff) |
(and REALLY fix the line-item links too, whew) fix overreporting of tax invoiced when using & reporting with taxclasses, RT#4131
Diffstat (limited to 'httemplate/search/cust_bill_pkg.cgi')
-rw-r--r-- | httemplate/search/cust_bill_pkg.cgi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi index 61d9a7505..1a95d010d 100644 --- a/httemplate/search/cust_bill_pkg.cgi +++ b/httemplate/search/cust_bill_pkg.cgi @@ -119,6 +119,13 @@ if ( $cgi->param('out') ) { " ( state = $state OR $state = '' ) ", " country = $country " ; + if ( $cgi->param('taxname') ) { + push @where, 'itemdesc = '. dbh->quote( $cgi->param('taxname') ); + #} elsif ( $cgi->param('taxnameNULL') { + } else { + push @where, "( itemdesc IS NULL OR itemdesc = '' OR itemdesc = 'Tax' )"; + } + push @where, ' taxclass = '. dbh->quote( $cgi->param('taxclass') ) if $cgi->param('taxclass'); |