X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.cgi;h=bf3fc74ff06ebacf9421eed9480d864095879faa;hb=0be54958813c9a4a5e24e32707b92e49881c7c0a;hp=08b6d079698e9521675788b5016ba0a272a933e6;hpb=8f6a34b553a7ca9b7fc9c9cf5802ce418e3a5296;p=freeside.git diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi old mode 100755 new mode 100644 index 08b6d0796..410fe4603 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -1,139 +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 &> +