implemenent condition_sql for FS::part_event::Condition::agent, RT12715
authorlevinse <levinse>
Sun, 8 May 2011 02:48:13 +0000 (02:48 +0000)
committerlevinse <levinse>
Sun, 8 May 2011 02:48:13 +0000 (02:48 +0000)
FS/FS/part_event/Condition/agent.pm

index da428c1..bdd4e12 100644 (file)
@@ -28,10 +28,10 @@ sub condition {
 
 }
 
-#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;