X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event.pm;h=ba5b6d641d54a02f291fee58fb73ecd94dc9d130;hb=33f66b493c95fdd9bc14452ea3d2bcd016d30d6b;hp=ded57154fe5ed866be92a890ae5f1e28a8e4588a;hpb=1b6859e5900403b984f75050d2939382b32d14d2;p=freeside.git diff --git a/FS/FS/part_event.pm b/FS/FS/part_event.pm index ded57154f..ba5b6d641 100644 --- a/FS/FS/part_event.pm +++ b/FS/FS/part_event.pm @@ -570,7 +570,7 @@ foreach my $INC ( @INC ) { } $actions{$mod} = { ( map { $_ => "FS::part_event::Action::$mod"->$_() } - qw( description eventtable_hashref default_weight deprecated ) + qw( description eventtable_hashref default_weight deprecated will_send_invoice ) #option_fields_hashref ), 'option_fields' => [ "FS::part_event::Action::$mod"->option_fields() ], @@ -604,6 +604,20 @@ sub all_actions { keys %actions } +=item invoice_send_actions + +Returns a list of action names that send invoices + +=cut + +sub invoice_send_actions { + my ( $class ) = @_; + + grep { $actions{$_}->{'will_send_invoice'} } + keys %actions + +} + =item process_initialize 'eventpart' => EVENTPART Job queue wrapper for "initialize". EVENTPART identifies the