From 487671e2fe08e63485dc71363a908295027516b5 Mon Sep 17 00:00:00 2001 From: levinse Date: Sun, 8 May 2011 02:48:13 +0000 Subject: [PATCH] implemenent condition_sql for FS::part_event::Condition::agent, RT12715 --- FS/FS/part_event/Condition/agent.pm | 10 +++++----- 1 file 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; -- 2.11.0