freeside/httemplate/search report_tax.cgi,1.17,1.18
ivan
ivan at pouncequick.420.am
Mon Nov 8 23:23:15 PST 2004
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory pouncequick:/tmp/cvs-serv24760
Modified Files:
report_tax.cgi
Log Message:
fixes to run under the mason strictness
Index: report_tax.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_tax.cgi,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- report_tax.cgi 26 Oct 2004 06:33:29 -0000 1.17
+++ report_tax.cgi 9 Nov 2004 07:23:09 -0000 1.18
@@ -42,7 +42,7 @@
)
";
-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 @@
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;
More information about the freeside-commits
mailing list