fix tax report for more complex situations with counties and taxclasses, make taxable...
authorivan <ivan>
Sun, 22 Feb 2009 02:38:17 +0000 (02:38 +0000)
committerivan <ivan>
Sun, 22 Feb 2009 02:38:17 +0000 (02:38 +0000)
httemplate/search/report_tax.cgi

index 100d4f1..a7630dd 100755 (executable)
@@ -329,11 +329,11 @@ foreach my $r ( qsearch({ 'table'     => 'cust_main_county',
   $total += $t;
   $regions{$label}->{'total'} += $t;
 
-  if ( $label eq $out ) {# && $t ) {
-    warn "adding $t for ".
-         join('/', map $r->$_, qw( taxclass county state country ) ). "\n";
-    #warn $t_sql if $r->state eq 'FL';
-  }
+  #if ( $label eq $out ) {# && $t ) {
+  #  warn "adding $t for ".
+  #       join('/', map $r->$_, qw( taxclass county state country ) ). "\n";
+  #  #warn $t_sql if $r->state eq 'FL';
+  #}
 
   ## calculate customer-exemption for this region