1 package FS::part_event::Action::notice;
4 use base qw( FS::part_event::Action );
5 use FS::Record qw( qsearchs );
8 sub description { 'Email a notice to the customer\'s billing address'; }
10 #sub eventtable_hashref {
19 'msgnum' => { 'label' => 'Template',
20 'type' => 'select-table',
21 'table' => 'msg_template',
22 'hashref' => { disabled => '' },
23 'name_col' => 'msgname',
29 sub default_weight { 55; } #?
32 my( $self, $object ) = @_;
34 my $cust_main = $self->cust_main($object);
36 my $msgnum = $self->option('msgnum');
38 my $msg_template = qsearchs('msg_template', { 'msgnum' => $msgnum } )
39 or die "Template $msgnum not found";
42 'cust_main' => $cust_main,