diff options
author | Mark Wells <mark@freeside.biz> | 2015-09-09 19:18:45 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-09-09 19:20:40 -0700 |
commit | ec9276cca14688d6e6ef8cefb8eb4f50fc1c1923 (patch) | |
tree | 6feb8012f9e5fc518931c08d9b3fe4e2fa897b44 | |
parent | 94baa71d6218b4a5ef867b45469cccc259b59762 (diff) |
fix itemdesc filter, #38020, from #26770
-rw-r--r-- | httemplate/search/cust_bill_pkg.cgi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi index 4fb9b662b..278382feb 100644 --- a/httemplate/search/cust_bill_pkg.cgi +++ b/httemplate/search/cust_bill_pkg.cgi @@ -601,6 +601,16 @@ if ( $cgi->param('nottax') ) { } } + # itemdesc, for breakdown from the vendor tax report + # (this is definitely used) + if ( $cgi->param('itemdesc') ) { + if ( $cgi->param('itemdesc') eq 'Tax' ) { + push @where, "($itemdesc = 'Tax' OR $itemdesc is null)"; + } else { + push @where, "$itemdesc = ". dbh->quote($cgi->param('itemdesc')); + } + } + } else { # the internal-tax case my $tax_select = 'SELECT tax.billpkgnum, SUM(tax.amount) as tax_total'; |