[freeside-commits] branch master updated. 82947aebf5bd25d69cf3da8b658b22df76629c9b

Ivan ivan at 420.am
Thu Feb 25 06:35:17 PST 2016


The branch, master has been updated
       via  82947aebf5bd25d69cf3da8b658b22df76629c9b (commit)
      from  30890c2f8f7c5b53cdd80aac5a6d40b35287105f (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 82947aebf5bd25d69cf3da8b658b22df76629c9b
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Feb 25 06:35:13 2016 -0800

    no more cust_main.payby

diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm
index 867d43e..de13847 100644
--- a/FS/FS/cust_main_Mixin.pm
+++ b/FS/FS/cust_main_Mixin.pm
@@ -313,8 +313,6 @@ in HASHREF.  Valid parameters are:
 
 =item status
 
-=item payby
-
 =back
 
 =cut
@@ -339,15 +337,6 @@ sub cust_search_sql {
     push @search, $class->$method();
   }
 
-  #payby
-  my @payby = ref($param->{'payby'})
-                ? @{ $param->{'payby'} }
-                : split(',', $param->{'payby'});
-  @payby = grep /^([A-Z]{4})$/, @payby;
-  if ( @payby ) {
-    push @search, 'cust_main.payby IN ('. join(',', map "'$_'", @payby). ')';
-  }
-
   #here is the agent virtualization
   push @search,
     $FS::CurrentUser::CurrentUser->agentnums_sql( 'table' => 'cust_main' );
@@ -557,9 +546,6 @@ sub process_email_search_result {
   $param->{'search'} = thaw(decode_base64($param->{'search'}))
     or die "process_email_search_result requires search params.\n";
 
-#  $param->{'payby'} = [ split(/\0/, $param->{'payby'}) ]
-#    unless ref($param->{'payby'});
-
   my $table = $param->{'table'} 
     or die "process_email_search_result requires table.\n";
 

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

Summary of changes:
 FS/FS/cust_main_Mixin.pm |   14 --------------
 1 file changed, 14 deletions(-)




More information about the freeside-commits mailing list