From: ivan Date: Sun, 25 Dec 2005 03:41:28 +0000 (+0000) Subject: add switch to enable taxclass breakdown, report invoiced tax separately in that case X-Git-Tag: BEFORE_FINAL_MASONIZE~235 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=1d9161282323473721a79ba8e03bf7590eefa6a5 add switch to enable taxclass breakdown, report invoiced tax separately in that case --- diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi index bfc76d787..9062f0626 100755 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -1,5 +1,8 @@ <% +my $conf = new FS::Conf; +my $money_char = $conf->config('money_char') || '$'; + my $user = getotaker; my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi); @@ -283,8 +286,10 @@ my $baselink = $p. "search/cust_bill_pkg.cgi?begin=$beginning;end=$ending"; - Sales + Sales + Rate + Tax owed <% unless ( $cgi->param('show_taxclasses') ) { %> Tax invoiced @@ -292,9 +297,13 @@ my $baselink = $p. "search/cust_bill_pkg.cgi?begin=$beginning;end=$ending"; Total + Non-taxable
(tax-exempt customer) + Non-taxable
(tax-exempt package) + Non-taxable
(monthly exemption) + Taxable @@ -324,27 +333,33 @@ my $baselink = $p. "search/cust_bill_pkg.cgi?begin=$beginning;end=$ending"; <%= $region->{'label'} %> - $<%= sprintf('%.2f', $region->{'total'} ) %> + <%= $money_char %><%= sprintf('%.2f', $region->{'total'} ) %> + - - $<%= sprintf('%.2f', $region->{'exempt_cust'} ) %> + <%= $money_char %><%= sprintf('%.2f', $region->{'exempt_cust'} ) %> + - - $<%= sprintf('%.2f', $region->{'exempt_pkg'} ) %> + <%= $money_char %><%= sprintf('%.2f', $region->{'exempt_pkg'} ) %> + - - $<%= sprintf('%.2f', $region->{'exempt_monthly'} ) %> + <%= $money_char %><%= sprintf('%.2f', $region->{'exempt_monthly'} ) %> + = - $<%= sprintf('%.2f', $region->{'taxable'} ) %> + <%= $money_char %><%= sprintf('%.2f', $region->{'taxable'} ) %> + <%= $region->{'label'} eq 'Total' ? '' : ' X ' %> <%= $region->{'rate'} %> + <%= $region->{'label'} eq 'Total' ? '' : ' = ' %> - $<%= sprintf('%.2f', $region->{'owed'} ) %> + <%= $money_char %><%= sprintf('%.2f', $region->{'owed'} ) %> <% unless ( $cgi->param('show_taxclasses') ) { %> - $<%= sprintf('%.2f', $region->{'tax'} ) %> + <%= $money_char %><%= sprintf('%.2f', $region->{'tax'} ) %> <% } %> @@ -373,24 +388,31 @@ my $baselink = $p. "search/cust_bill_pkg.cgi?begin=$beginning;end=$ending"; } my $link = $baselink; - if ( $region->{'label'} ne 'Total' ) { + #if ( $region->{'label'} ne 'Total' ) { if ( $region->{'label'} eq $out ) { $link .= ';out=1'; } else { $link .= ';'. $region->{'url_param'}; } - } + #} %> <%= $region->{'label'} %> - $<%= sprintf('%.2f', $region->{'tax'} ) %> + <%= $money_char %><%= sprintf('%.2f', $region->{'tax'} ) %> <% } %> + + Total + + <%= $money_char %><%= sprintf('%.2f', $tax ) %> + + + <% } %>