1 package FS::part_event::Action::cust_bill_print_pdf;
4 use base qw( FS::part_event::Action );
6 sub description { 'Send invoice (spool PDF only)'; }
8 sub eventtable_hashref {
14 'modenum' => { label => 'Invoice mode',
15 type => 'select-invoice_mode'
20 sub default_weight { 51; }
23 my( $self, $cust_bill ) = @_;
25 #my $cust_main = $self->cust_main($cust_bill);
26 #my $cust_main = $cust_bill->cust_main;
28 my $opt = { $self->options };
29 $opt->{'notice_name'} ||= 'Invoice';
31 $cust_bill->set('mode' => $self->option('modenum'));
32 $cust_bill->batch_invoice($opt);