X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.cgi;h=b73910a48060bcdab89b6776ab57d360dab95568;hb=46fe3dbcb3ca97d1f3c70d49351846cf0ab6461d;hp=0a368d33c31091826b0b13279faa9ed2be23ae13;hpb=7b973e57e167efdce2218209e9198ae34f2483b2;p=freeside.git diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi old mode 100755 new mode 100644 index 0a368d33c..410fe4603 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -1,141 +1,382 @@ - -<% - -my $user = getotaker; - -$cgi->param('beginning') =~ /^([ 0-9\-\/]{0,10})$/; -my $pbeginning = $1; -my $beginning = str2time($1) || 0; - -$cgi->param('ending') =~ /^([ 0-9\-\/]{0,10})$/; -my $pending = $1; -my $ending = ( str2time($1) || 4294880896 ) + 86399; - -my($total, $exempt, $taxable, $tax) = ( 0, 0, 0, 0 ); -my $out = 'Out of taxable region(s)'; -my %regions; -foreach my $r ( qsearch('cust_main_county', {}) ) { - my $label; - if ( $r->tax == 0 ) { - $label = $out; - } elsif ( $r->taxname ) { - $label = $r->taxname; - } else { - $label = $r->country; - $label = $r->state.", $label" if $r->state; - $label = $r->county." county, $label" if $r->county; - } +<& /elements/header.html, $report->title &> +