[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 067e40e7a339956badfde459412477659b963c69

Ivan ivan at 420.am
Sat Jul 14 21:11:17 PDT 2012


The branch, FREESIDE_2_3_BRANCH has been updated
       via  067e40e7a339956badfde459412477659b963c69 (commit)
      from  0948b20054aebe11ee24718556fd17f33c13699a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 067e40e7a339956badfde459412477659b963c69
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Jul 14 21:11:08 2012 -0700

    fix 477 report part V, RT#18503

diff --git a/httemplate/search/477partV.html b/httemplate/search/477partV.html
index 55ebc0b..1c8773a 100755
--- a/httemplate/search/477partV.html
+++ b/httemplate/search/477partV.html
@@ -34,9 +34,11 @@ $search_hash{'classnum'} = [ $cgi->param('classnum') ];
 $search_hash{report_option} = $cgi->param('partv_report_option')
   if $cgi->param('partv_report_option');
 
-my $sql_query = FS::cust_pkg->search( { %search_hash, 'fcc_line' => 1 });
-$sql_query->{select} = 'DISTINCT substr(zip,1,5) as zip';
-$sql_query->{order_by} = 'ORDER BY substr(zip,1,5)';
+my $sql_query = FS::cust_pkg->search( { %search_hash,
+                                        #'fcc_line'    => 1,
+                                        'select_zip5' => 1,
+                                      }
+                                    );
 my $count_query = delete($sql_query->{'count_query'});
 $count_query =~ s/COUNT\(\*\)/count(DISTINCT substr(zip,1,5))/;
 $count_query =~ s/ORDER BY [.\w]+//;

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/477partV.html |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list