1 package FS::part_event::Condition::mycondition;
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.
11 'New condition (the author forgot to change this description)';
14 #sub eventtable_hashref {
18 # 'cust_pay_batch' => 1,
24 # 'field' => 'description',
26 # 'another_field' => { 'label'=>'Amount', 'type'=>'money', },
28 # 'third_field' => { 'label' => 'Types',
29 # 'type' => 'checkbox-multiple',
30 # 'options' => [ 'h', 's' ],
31 # 'option_labels' => { 'h' => 'Happy',
38 my($self, $object, %opt) = @_;
40 my $cust_main = $self->cust_main($object);
42 my $value_of_field = $self->option('field');
44 my $time = $opt{'time'}; #use this instead of time or $^T
52 # my( $class, $table ) = @_;