[freeside-commits] freeside/FS/FS/part_event/Condition payby.pm, 1.1, 1.2

Ivan,,, ivan at wavetail.420.am
Sat Sep 18 20:02:11 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition
In directory wavetail.420.am:/tmp/cvs-serv31158/part_event/Condition

Modified Files:
	payby.pm 
Log Message:
another (hopefully significant) billing optimization, RT#6802

Index: payby.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition/payby.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- payby.pm	1 Aug 2007 22:24:39 -0000	1.1
+++ payby.pm	19 Sep 2010 03:02:09 -0000	1.2
@@ -30,21 +30,15 @@
 
   my $cust_main = $self->cust_main($object);
 
-  #uuh.. all right?  test this.
   my $hashref = $self->option('payby') || {};
   $hashref->{ $cust_main->payby };
 
 }
 
-#sub condition_sql {
-#  my( $self, $table ) = @_;
-#
-#  #uuh... yeah... something like this.  test it for sure.
-#
-#  my @payby = keys %{ $self->option('payby') };
-#
-#  ' ( '. join(' OR ', map { "cust_main.payby = '$_'" } @payby ). ' ) ';
-#
-#}
+sub condition_sql {
+  my( $self, $table ) = @_;
+
+  'cust_main.payby IN '. $self->condition_sql_option_option('payby');
+}
 
 1;



More information about the freeside-commits mailing list