[freeside-commits] freeside/httemplate/search cust_bill_pkg.cgi, 1.41, 1.42

Ivan,,, ivan at wavetail.420.am
Sat Apr 2 12:23:09 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv16937

Modified Files:
	cust_bill_pkg.cgi 
Log Message:
fix line item report when linked from CCH tax report credits, RT#12329

Index: cust_bill_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill_pkg.cgi,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -w -d -r1.41 -r1.42
--- cust_bill_pkg.cgi	15 Mar 2011 00:46:38 -0000	1.41
+++ cust_bill_pkg.cgi	2 Apr 2011 19:23:07 -0000	1.42
@@ -475,14 +475,13 @@
     $count_query .= "SUM(usage)";
   } elsif ( $unearned ) {
     $count_query .= "SUM(cust_bill_pkg.recur)";
-  } else {
-    if ( scalar( grep( /locationtaxid/, $cgi->param ) ) ||
-              $cgi->param('iscredit') eq 'rate') {
-      $count_query .= "SUM( COALESCE(amount, cust_bill_pkg.setup + cust_bill_pkg.recur))";
+  } elsif ( scalar( grep( /locationtaxid/, $cgi->param ) ) ) {
+    $count_query .= "SUM( COALESCE(cust_bill_pkg_tax_location.amount, cust_bill_pkg.setup + cust_bill_pkg.recur))";
+  } elsif ( $cgi->param('iscredit') eq 'rate') {
+    $count_query .= "SUM( cust_credit_bill_pkg.amount )";
     } else {
       $count_query .= "SUM(cust_bill_pkg.setup + cust_bill_pkg.recur)";
     }
-  }
 
   if ( $unearned ) {
 



More information about the freeside-commits mailing list