1 package FS::part_event::Condition::agent_type;
5 use base qw( FS::part_event::Condition );
7 # see the FS::part_event::Condition manpage for full documentation on each
8 # of the required and optional methods.
16 'typenum' => { label => 'Agent Type',
17 type => 'select-agent_type',
24 my($self, $object, %opt) = @_;
26 my $cust_main = $self->cust_main($object);
28 my $typenum = $self->option('typenum');
30 $cust_main->agent->typenum == $typenum;
35 # my( $self, $table ) = @_;