}
$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() ],
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
=head1 SEE ALSO
L<FS::part_event_option>, L<FS::part_event_condition>, L<FS::cust_main>,
-L<FS::cust_pkg>, L<FS::svc_acct>, L<FS::cust_bill>, L<FS::cust_bill_event>,
+L<FS::cust_pkg>, L<FS::svc_acct>, L<FS::cust_bill>, L<FS::cust_event>,
L<FS::Record>,
schema.html from the base documentation.