X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.cgi;h=615abe5b2830fb073397bcf99a9c06a5d2afab01;hb=c62c90543fcd5de9e57b1d2ce442fa37c71358c8;hp=124e5d8192732e4b70ce8133738a68b5d185f058;hpb=48ddc2a473201e09daaff99b3dd22d56ebe8f939;p=freeside.git
diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi
old mode 100755
new mode 100644
index 124e5d819..615abe5b2
--- a/httemplate/search/report_tax.cgi
+++ b/httemplate/search/report_tax.cgi
@@ -14,7 +14,7 @@ TD.sectionhead {
.grid TH { background-color: #cccccc; padding: 0px 3px 2px }
.row0 TD { background-color: #eeeeee; padding: 0px 3px 2px; text-align: right}
.row1 TD { background-color: #ffffff; padding: 0px 3px 2px; text-align: right}
-TD.rowhead { font-weight: bold; text-align: left }
+TD.rowhead { font-weight: bold; text-align: left; padding: 0px 3px }
.bigmath { font-size: large; font-weight: bold; font: sans-serif; text-align: center }
.total { font-style: italic }
@@ -22,7 +22,7 @@ TD.rowhead { font-weight: bold; text-align: left }
- Sales
+ Sales
Rate
@@ -32,6 +32,8 @@ TD.rowhead { font-weight: bold; text-align: left }
Tax credited
Net tax due
+
+ Tax collected
@@ -39,6 +41,7 @@ TD.rowhead { font-weight: bold; text-align: left }
@@ -71,10 +74,20 @@ TD.rowhead { font-weight: bold; text-align: left }
% } # if $row->{pkgclass} ne ...
% # construct base links that limit to the tax rates described by this row
+% # cust_bill_pkg.cgi wants a list of specific taxnums (and package class)
+% # cust_credit_bill_pkg.html wants a geographic scope (and package class)
% my $rowlink = ';taxnum=' . $row->{taxnums};
+% my $rowregion = '';
+% foreach my $loc (qw(state county city district)) {
+% if ( $row->{$loc} ) {
+% $rowregion .= ";$loc=" . uri_escape($row->{$loc});
+% }
+% }
% # and also the package class, if we're limiting package class
-% $rowlink .= ';pkgclass='.$row->{pkgclass}
-% if $params{breakdown}->{pkgclass};
+% if ( $params{breakdown}->{pkgclass} ) {
+% $rowlink .= ';classnum=' . ($row->{pkgclass} || 0);
+% $rowregion .= ';classnum=' . ($row->{pkgclass} || 0);
+% }
%
% if ( $row->{total} ) {
Non-taxable
Non-taxable
Non-taxable
+ Credited
Taxable