X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FCondition%2Fagent.pm;h=bdd4e12ded6a05f3858f2f1c8bae723f22725b52;hb=503507828dad55cc3bcdf5e45148dd09007e8bf9;hp=da428c15fbf1b56d9c971af57193d418f04c93b9;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git 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;