X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_event.pm;h=be894593e5f3b12b5ff12efb2bf5d219637d78e0;hp=ded57154fe5ed866be92a890ae5f1e28a8e4588a;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=929783d1045757abbe5c84ff2439547b0f8eca23 diff --git a/FS/FS/part_event.pm b/FS/FS/part_event.pm index ded57154f..be894593e 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 @@ -624,7 +638,7 @@ sub process_initialize { =head1 SEE ALSO L, L, L, -L, L, L, L, +L, L, L, L, L, schema.html from the base documentation.