1 package FS::part_event::Condition::cust_pay_batch_declined;
5 use base qw( FS::part_event::Condition );
8 'Batch payment declined';
11 sub eventtable_hashref {
15 'cust_pay_batch' => 1,
21 # 'field' => 'description',
23 # 'another_field' => { 'label'=>'Amount', 'type'=>'money', },
25 # 'third_field' => { 'label' => 'Types',
26 # 'type' => 'checkbox-multiple',
27 # 'options' => [ 'h', 's' ],
28 # 'option_labels' => { 'h' => 'Happy',
35 my($self, $cust_pay_batch, %opt) = @_;
37 #my $cust_main = $self->cust_main($object);
38 #my $value_of_field = $self->option('field');
39 #my $time = $opt{'time'}; #use this instead of time or $^T
41 $cust_pay_batch->status =~ /Declined/i;
46 # my( $class, $table ) = @_;