diff options
| author | ivan <ivan> | 2008-11-02 20:27:19 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2008-11-02 20:27:19 +0000 |
| commit | 0dd14cb683e858f490cbd3379e7cafbd78183b83 (patch) | |
| tree | 7a1ba25ac4b6cc1fb651a8080375b4f2b9b0508f /httemplate/search/cust_bill_pkg.cgi | |
| parent | 80ffb3401777a589be6f7eb5dd0a0b7cb23d3964 (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 74efe4f7e..27819b716 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'); |
