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