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