X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.cgi;h=e3d203eb3283fbdb799ad771a4f88dc63789a615;hp=aa9ed6f11c587b1bd30f790521444f2749cd3eb2;hb=743a09e78017b7b03ed79dccb54accfa1b26c95f;hpb=fe39cd452b9763064e270fce2cbe5b73b5585568 diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi index aa9ed6f11..e3d203eb3 100755 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -42,7 +42,7 @@ my $gotcust = " ) "; -my($total, $exempt, $taxable, $tax) = ( 0, 0, 0, 0 ); +my($total, $exempt, $taxable, $owed, $tax) = ( 0, 0, 0, 0, 0 ); my $out = 'Out of taxable region(s)'; my %regions; foreach my $r (qsearch('cust_main_county', {}, '', $gotcust) ) { @@ -153,7 +153,11 @@ push @regions, { sub getlabel { my $r = shift; + + my $label; if ( $r->tax == 0 ) { + #kludge to avoid "will not stay shared" warning + my $out = 'Out of taxable region(s)'; $label = $out; } elsif ( $r->taxname ) { $label = $r->taxname;