summaryrefslogtreecommitdiff
path: root/httemplate/search/report_tax.cgi
diff options
context:
space:
mode:
authorivan <ivan>2011-07-21 23:33:09 +0000
committerivan <ivan>2011-07-21 23:33:09 +0000
commitd0cb35555524f780e3239e253bea63d39312bc3d (patch)
tree0a3808c4c70b0a9afae88e4077c79fe5c222eb2d /httemplate/search/report_tax.cgi
parent4987c433ba77d64a0ef73c445a3d4afde9d080d3 (diff)
fix tax reports for taxclass+non-taxclass cases, RT#13160
Diffstat (limited to 'httemplate/search/report_tax.cgi')
-rwxr-xr-xhttemplate/search/report_tax.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi
index 93e5b51c9..0cd652d83 100755
--- a/httemplate/search/report_tax.cgi
+++ b/httemplate/search/report_tax.cgi
@@ -366,12 +366,13 @@ foreach my $r ( qsearch({ 'table' => 'cust_main_county',
} else {
- $regions{$label}->{'url_param'} .= ';taxclassNULL=1'
- if $cgi->param('show_taxclasses');
-
my $same_sql = $r->sql_taxclass_sameregion;
$mywhere .= " AND $same_sql" if $same_sql;
+ $regions{$label}->{'url_param'} .= ';taxclassNULL=1'
+ if $cgi->param('show_taxclasses')
+ || $same_sql;
+
}
my $fromwhere = "$from_join_cust_pkg $mywhere"; # AND payby != 'COMP' ";