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 {
12 sub default_weight { 51; }
15 my( $self, $cust_bill ) = @_;
17 #my $cust_main = $self->cust_main($cust_bill);
18 #my $cust_main = $cust_bill->cust_main;
20 my $opt = { $self->options };
21 $opt->{'notice_name'} ||= 'Invoice';
23 $cust_bill->batch_invoice($opt);