summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2004-11-09 09:12:57 +0000
committerivan <ivan>2004-11-09 09:12:57 +0000
commitb3dd862b5390231d524945c5340ab94251103b17 (patch)
treeaccb00376e91d72be50d0b27482c63815ee434dc
parent4e49e165948848ce864765b0b3f859bad1dc1019 (diff)
sync up w/1.5
-rwxr-xr-xhttemplate/search/report_tax.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi
index aa9ed6f..e3d203e 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;