X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.cgi;h=0cd652d8366255b2693a4b01b57a78eaeedc4a39;hb=ea3ce8d7f076e7fecff4be7ae63bc413adb0adf5;hp=22e6ab26819b1f75126d0999e452c97b2ef8156c;hpb=ce1fa204e25ae8605bdb4f3dbfdf9bd1bff1a590;p=freeside.git diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi index 22e6ab268..0cd652d83 100755 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -10,35 +10,45 @@ ) ) %> + +Download full results
+as Excel spreadsheet + <% include('/elements/table-grid.html') %> - + Sales - - Rate - - Tax owed + + Rate + + Tax owed % unless ( $cgi->param('show_taxclasses') ) { - Tax invoiced - - Tax credited - - Tax collected + Tax invoiced + + Tax credited + + Tax collected % } - Total - - Non-taxable
(tax-exempt customer) - - Non-taxable
(tax-exempt package) - - Non-taxable
(monthly exemption) - - Taxable + Total + + Non-taxable + + Non-taxable + + Non-taxable + + Taxable + + + + (tax-exempt customer) + (tax-exempt package) + (monthly exemption) % my $bgcolor1 = '#eeeeee'; @@ -124,7 +134,7 @@ <<%$tdh%>> - <<%$tdh%> ALIGN="right"> - <% &$money_sprintf( $region->{'credit'} ) %> <<%$tdh%>> = @@ -186,7 +196,7 @@ <<%$td%>> - <<%$tdh%> ALIGN="right"> - <% &$money_sprintf( $region->{'credit'} ) %> <<%$td%>> = @@ -212,7 +222,7 @@ <<%$td%>> - <<%$td%> ALIGN="right"> - <% &$money_sprintf( $tot_credit ) %> <<%$td%>> = @@ -356,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' "; @@ -781,5 +792,6 @@ $dateagentlink .= ';agentnum='. $cgi->param('agentnum') if length($agentname); my $baselink = $p. "search/cust_bill_pkg.cgi?$dateagentlink"; my $exemptlink = $p. "search/cust_tax_exempt_pkg.cgi?$dateagentlink"; +my $creditlink = $p. "search/cust_credit_bill_pkg.html?$dateagentlink";