From: ivan Date: Sat, 11 Apr 2009 21:29:42 +0000 (+0000) Subject: add cust_bill_email action X-Git-Tag: root_of_svc_elec_features~1285 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=b4cb5e5d2d4faca16911e1992fbda8fa1528ed4e add cust_bill_email action --- 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;