X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FAction%2Fcust_bill_send.pm;h=c6928dc000cd3d7e40d4f3ec55159674b91616c5;hb=e2ee874843b19f6c5221f5ce0af90979dba34e57;hp=9330c6113f4976a6b346fcc2b1dfa649ac1307f3;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git diff --git a/FS/FS/part_event/Action/cust_bill_send.pm b/FS/FS/part_event/Action/cust_bill_send.pm index 9330c6113..c6928dc00 100644 --- a/FS/FS/part_event/Action/cust_bill_send.pm +++ b/FS/FS/part_event/Action/cust_bill_send.pm @@ -3,24 +3,26 @@ package FS::part_event::Action::cust_bill_send; use strict; use base qw( FS::part_event::Action ); -sub description { - 'Send invoice (email/print/fax)'; -} +sub description { 'Send invoice (email/print/fax)'; } sub eventtable_hashref { { 'cust_bill' => 1 }; } -sub default_weight { - 50; +sub option_fields { + ( + 'modenum' => { label => 'Invoice mode', + type => 'select-invoice_mode', + }, + ); } +sub default_weight { 50; } + sub do_action { my( $self, $cust_bill ) = @_; - #my $cust_main = $self->cust_main($cust_bill); - my $cust_main = $cust_bill->cust_main; - + $cust_bill->set('mode' => $self->option('modenum')); $cust_bill->send; }