summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_bill_pkg.cgi
diff options
context:
space:
mode:
authorivan <ivan>2008-07-08 02:01:41 +0000
committerivan <ivan>2008-07-08 02:01:41 +0000
commit36f08ea69b42f3b998a98feb04a5edb1ec81b82b (patch)
treeaa68fc8571903e723901d4dbe9853c86dbf3d009 /httemplate/search/cust_bill_pkg.cgi
parent87ad4342ec81f1913d74d71fc0049ff05da52153 (diff)
fix line-item reports on taxclass-less regions
Diffstat (limited to 'httemplate/search/cust_bill_pkg.cgi')
-rw-r--r--httemplate/search/cust_bill_pkg.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi
index d04888177..4ac9d9f3f 100644
--- a/httemplate/search/cust_bill_pkg.cgi
+++ b/httemplate/search/cust_bill_pkg.cgi
@@ -122,6 +122,11 @@ if ( $cgi->param('out') ) {
push @where, ' taxclass = '. dbh->quote( $cgi->param('taxclass') )
if $cgi->param('taxclass');
+ if ( $cgi->param('taxclassNULL') ) {
+ my $same_sql = $r->sql_taxclass_sameregion;
+ push @where, $same_sql if $same_sql;
+ }
+
}
push @where, 'pkgnum != 0' if $cgi->param('nottax');