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 {
16 'cust_pay_batch' => 1,
17 'cust_statement' => 1,
24 'msgnum' => { 'label' => 'Template',
25 'type' => 'select-table',
26 'table' => 'msg_template',
27 'hashref' => { disabled => '' },
28 'name_col' => 'msgname',
34 sub default_weight { 55; } #?
37 my( $self, $object ) = @_;
39 my $cust_main = $self->cust_main($object);
41 my $msgnum = $self->option('msgnum');
43 my $msg_template = qsearchs('msg_template', { 'msgnum' => $msgnum } )
44 or die "Template $msgnum not found";
47 'cust_main' => $cust_main,