projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a424532
)
fix itemdesc filter, #38020, from #26770
author
Mark Wells
<mark@freeside.biz>
Thu, 10 Sep 2015 02:18:45 +0000
(19:18 -0700)
committer
Mark Wells
<mark@freeside.biz>
Thu, 10 Sep 2015 02:20:44 +0000
(19:20 -0700)
httemplate/search/cust_bill_pkg.cgi
patch
|
blob
|
history
diff --git
a/httemplate/search/cust_bill_pkg.cgi
b/httemplate/search/cust_bill_pkg.cgi
index
4fb9b66
..
278382f
100644
(file)
--- 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';