freeside/httemplate/search report_tax.cgi,1.16,1.17

ivan ivan at pouncequick.420.am
Mon Oct 25 23:33:32 PDT 2004


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory pouncequick:/tmp/cvs-serv27670

Modified Files:
	report_tax.cgi 
Log Message:
and one last case with named and not named taxes in the same region, ack

Index: report_tax.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_tax.cgi,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- report_tax.cgi	26 Oct 2004 06:04:10 -0000	1.16
+++ report_tax.cgi	26 Oct 2004 06:33:29 -0000	1.17
@@ -122,7 +122,10 @@
   my @param = @base_param; 
 
   #match itemdesc if necessary!
-  my $named_tax = $r->taxname ? 'AND itemdesc = '. dbh->quote($r->taxname) : '';
+  my $named_tax =
+    $r->taxname
+      ? 'AND itemdesc = '. dbh->quote($r->taxname)
+      : "AND itemdesc IS NULL or itemdesc = ''";
   my $x = scalar_sql($r, \@taxparam,
     "SELECT SUM(cust_bill_pkg.setup+cust_bill_pkg.recur) $taxwhere ".
     "AND pkgnum = 0 $named_tax",




More information about the freeside-commits mailing list