summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-09-09 19:18:45 -0700
committerMark Wells <mark@freeside.biz>2015-09-09 19:18:45 -0700
commitcc767315b0b128af86831baa29cac9ccc5549a12 (patch)
tree6593e982b0f63d2691558389690faece0dcd8914
parent75d07cc54b2e54e50bff80203c6065b215ee5d1c (diff)
fix itemdesc filter, #38020, from #26770
-rw-r--r--httemplate/search/cust_bill_pkg.cgi10
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi
index fcf211005..f200e081a 100644
--- a/httemplate/search/cust_bill_pkg.cgi
+++ b/httemplate/search/cust_bill_pkg.cgi
@@ -580,6 +580,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';