From: levinse Date: Sun, 8 May 2011 02:48:13 +0000 (+0000) Subject: implemenent condition_sql for FS::part_event::Condition::agent, RT12715 X-Git-Tag: freeside_2_3_0~287 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=487671e2fe08e63485dc71363a908295027516b5 implemenent condition_sql for FS::part_event::Condition::agent, RT12715 --- 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;