event refactor, landing on HEAD!
[freeside.git] / FS / FS / part_event / Action / cust_bill_send.pm
1 package FS::part_event::Action::cust_bill_send;
2
3 use strict;
4 use base qw( FS::part_event::Action );
5
6 sub description {
7   'Send invoice (email/print/fax)';
8 }
9
10 sub eventtable_hashref {
11   { 'cust_bill' => 1 };
12 }
13
14 sub default_weight {
15   50;
16 }
17
18 sub do_action {
19   my( $self, $cust_bill ) = @_;
20
21   #my $cust_main = $self->cust_main($cust_bill);
22   my $cust_main = $cust_bill->cust_main;
23
24   $cust_bill->send;
25 }
26
27 1;