From: Jonathan Prykop Date: Fri, 13 May 2016 02:48:48 +0000 (-0500) Subject: Revert "RT#41394: Add advertising source to customer fields selection [new solution... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=99721eb3ca5b9200d2aaec4cab0cf120e382ed99 Revert "RT#41394: Add advertising source to customer fields selection [new solution, for advanced customer report only]" This reverts commit 3b50b841a272a5cd55497958d572dd73a3339e7b. --- diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index cc23f50e0..c8a084c9b 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -620,10 +620,6 @@ listref (list returned by FS::UI::Web::parse_lt_gt($cgi, 'current_balance')) bool -=item select_referral - -bool, join to part_referral and select part_referral.referral - =back =cut @@ -1031,13 +1027,6 @@ sub search { my(@extra_headers) = (); my(@extra_fields) = (); - if ($params->{'select_referral'}) { - $addl_from .= ' LEFT JOIN part_referral ON ( cust_main.refnum = part_referral.refnum ) '; - push @select, 'part_referral.referral'; - push @extra_headers, 'Advertising Source'; - push @extra_fields, 'referral'; - } - if ($params->{'flattened_pkgs'}) { #my $pkg_join = ''; diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html index 84eee1b80..672c20174 100755 --- a/httemplate/search/cust_main.html +++ b/httemplate/search/cust_main.html @@ -50,7 +50,6 @@ my @scalars = qw ( all_tags all_pkg_classnums any_pkg_status - select_referral ); for my $param ( @scalars ) { diff --git a/httemplate/search/report_cust_main.html b/httemplate/search/report_cust_main.html index 2e8f67bf1..ba7c99a45 100755 --- a/httemplate/search/report_cust_main.html +++ b/httemplate/search/report_cust_main.html @@ -278,11 +278,6 @@ <& /elements/tr-select-cust-fields.html &> - <% mt('Add advertising source column') |h %> - - - - <% mt('Add package columns') |h %>