diff options
Diffstat (limited to 'FS/FS/part_event/Condition/agent_type.pm')
-rw-r--r-- | FS/FS/part_event/Condition/agent_type.pm | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/FS/FS/part_event/Condition/agent_type.pm b/FS/FS/part_event/Condition/agent_type.pm deleted file mode 100644 index 54c893260..000000000 --- a/FS/FS/part_event/Condition/agent_type.pm +++ /dev/null @@ -1,40 +0,0 @@ -package FS::part_event::Condition::agent_type; - -use strict; - -use base qw( FS::part_event::Condition ); - -# see the FS::part_event::Condition manpage for full documentation on each -# of the required and optional methods. - -sub description { - 'Agent Type'; -} - -sub option_fields { - ( - 'typenum' => { label => 'Agent Type', - type => 'select-agent_type', - disable_empty => 1, - }, - ); -} - -sub condition { - my($self, $object, %opt) = @_; - - my $cust_main = $self->cust_main($object); - - my $typenum = $self->option('typenum'); - - $cust_main->agent->typenum == $typenum; - -} - -#sub condition_sql { -# my( $self, $table ) = @_; -# -# 'true'; -#} - -1; |