[freeside-commits] freeside/FS/FS tax_rate.pm,1.45,1.46

Ivan,,, ivan at wavetail.420.am
Wed Feb 9 17:20:06 PST 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv12338

Modified Files:
	tax_rate.pm 
Log Message:
fix cch tax report for more than one cust_bill_pkg_tax_rate_location per line item, RT#11483

Index: tax_rate.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/tax_rate.pm,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -w -d -r1.45 -r1.46
--- tax_rate.pm	2 Dec 2010 19:03:58 -0000	1.45
+++ tax_rate.pm	10 Feb 2011 01:20:03 -0000	1.46
@@ -1806,6 +1806,7 @@
 
 =cut
 
+#shit, all sorts of false laxiness w/report_newtax.cgi
 sub generate_liability_report {
   my %args = @_;
 
@@ -1897,8 +1898,7 @@
       my $taxwhere = "FROM cust_bill_pkg $addl_from $where AND payby != 'COMP' ".
         "AND ". join( ' AND ', map { "( $_ = ? OR ? = '' AND $_ IS NULL)" } @taxparam );
 
-      my $sql = "SELECT SUM(cust_bill_pkg.setup+cust_bill_pkg.recur) ".
-                " $taxwhere AND cust_bill_pkg.pkgnum = 0";
+      my $sql = "SELECT SUM(amount) $taxwhere AND cust_bill_pkg.pkgnum = 0";
 
       my $x = &{$scalar_sql}($t, [ map { $_, $_ } @params ], $sql );
       $tax += $x;



More information about the freeside-commits mailing list