[freeside-commits] freeside/FS/FS/part_event/Condition agent.pm, 1.1, 1.1.8.1

Erik Levinson levinse at wavetail.420.am
Sat May 7 19:48:16 PDT 2011


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	agent.pm 
Log Message:
implemenent condition_sql for FS::part_event::Condition::agent, RT12715

Index: agent.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition/agent.pm,v
retrieving revision 1.1
retrieving revision 1.1.8.1
diff -u -w -d -r1.1 -r1.1.8.1
--- agent.pm	1 Aug 2007 22:24:39 -0000	1.1
+++ agent.pm	8 May 2011 02:48:14 -0000	1.1.8.1
@@ -28,10 +28,10 @@
 
 }
 
-#sub condition_sql {
-#  my( $self, $table ) = @_;
-#
-#  'true';
-#}
+sub condition_sql {
+  my( $class, $table, %opt ) = @_;
+
+  "cust_main.agentnum = " . $class->condition_sql_option_integer('agentnum', $opt{'driver_name'});
+}
 
 1;



More information about the freeside-commits mailing list