diff options
| -rw-r--r-- | FS/FS/part_event/Action/cust_bill_email.pm | 23 | 
1 files changed, 23 insertions, 0 deletions
diff --git a/FS/FS/part_event/Action/cust_bill_email.pm b/FS/FS/part_event/Action/cust_bill_email.pm new file mode 100644 index 000000000..a5cd86145 --- /dev/null +++ b/FS/FS/part_event/Action/cust_bill_email.pm @@ -0,0 +1,23 @@ +package FS::part_event::Action::cust_bill_email; + +use strict; +use base qw( FS::part_event::Action ); + +sub description { 'Send invoice (email only)'; } + +sub eventtable_hashref { +  { 'cust_bill' => 1 }; +} + +sub default_weight { 51; } + +sub do_action { +  my( $self, $cust_bill ) = @_; + +  #my $cust_main = $self->cust_main($cust_bill); +  my $cust_main = $cust_bill->cust_main; + +  $cust_bill->email; +} + +1;  | 
