summaryrefslogtreecommitdiff
path: root/FS/FS/part_event
diff options
context:
space:
mode:
authorlevinse <levinse>2011-05-08 02:48:13 +0000
committerlevinse <levinse>2011-05-08 02:48:13 +0000
commit487671e2fe08e63485dc71363a908295027516b5 (patch)
tree042dab29a4806ea04cc00bb04e82c8b2ef4f17fa /FS/FS/part_event
parentc991a4f510a605f1bf3d1361cc2894370c5cd05b (diff)
implemenent condition_sql for FS::part_event::Condition::agent, RT12715
Diffstat (limited to 'FS/FS/part_event')
-rw-r--r--FS/FS/part_event/Condition/agent.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/FS/FS/part_event/Condition/agent.pm b/FS/FS/part_event/Condition/agent.pm
index da428c15f..bdd4e12de 100644
--- a/FS/FS/part_event/Condition/agent.pm
+++ b/FS/FS/part_event/Condition/agent.pm
@@ -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;