fix for correct reporting of generic taxes
authorivan <ivan>
Tue, 9 Nov 2004 09:13:38 +0000 (09:13 +0000)
committerivan <ivan>
Tue, 9 Nov 2004 09:13:38 +0000 (09:13 +0000)
httemplate/search/report_tax.cgi

index e3d203e..601763b 100755 (executable)
@@ -125,7 +125,7 @@ foreach my $r (
   my $named_tax =
     $r->taxname
       ? 'AND itemdesc = '. dbh->quote($r->taxname)
-      : "AND itemdesc IS NULL or itemdesc = ''";
+      : "AND itemdesc IS NULL OR itemdesc = '' OR itemdesc = 'Tax'";
   my $x = scalar_sql($r, \@taxparam,
     "SELECT SUM(cust_bill_pkg.setup+cust_bill_pkg.recur) $taxwhere ".
     "AND pkgnum = 0 $named_tax",