1 package FS::part_event::Action::notice;
4 use base qw( FS::part_event::Action );
5 use FS::Record qw( qsearchs );
8 sub description { 'Send a notice from a message template'; }
10 #sub eventtable_hashref {
19 'msgnum' => { 'label' => 'Template' },
22 sub default_weight { 55; } #?
25 my( $self, $object ) = @_;
27 my $cust_main = $self->cust_main($object);
29 my $msgnum = $self->option('msgnum');
31 my $msg_template = qsearchs('msg_template', { 'msgnum' => $msgnum } )
32 or die "Template $msgnum not found";
35 'cust_main' => $cust_main,