[freeside-commits] freeside/httemplate/search report_receivables.cgi, 1.30, 1.31

Ivan,,, ivan at wavetail.420.am
Sun Jul 23 07:23:41 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv7668/httemplate/search

Modified Files:
	report_receivables.cgi 
Log Message:
sql num_pkgs conflicting with method...

Index: report_receivables.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_receivables.cgi,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- report_receivables.cgi	23 Jul 2006 14:21:37 -0000	1.30
+++ report_receivables.cgi	23 Jul 2006 14:23:39 -0000	1.31
@@ -70,7 +70,7 @@
   my $cancelled_sql = FS::cust_pkg->inactive_sql;
 
   my $packages_cols = <<END;
-       ( $select_count_pkgs                    ) AS num_pkgs,
+       ( $select_count_pkgs                    ) AS num_pkgs_sql,
        ( $select_count_pkgs AND $active_sql    ) AS active_pkgs,
        ( $select_count_pkgs AND $inactive_sql  ) AS inactive_pkgs,
        ( $select_count_pkgs AND $suspended_sql ) AS suspended_pkgs,
@@ -117,7 +117,7 @@
     my $row = shift;
 
     my $status = 'unknown';
-    if ( $row->num_pkgs == 0 ) {
+    if ( $row->num_pkgs_sql == 0 ) {
       $status = 'prospect';
     } elsif ( $row->active_pkgs    > 0 ) {
       $status = 'active';



More information about the freeside-commits mailing list