'cust_bill' => 1,
'cust_pkg' => 1,
'cust_pay_batch' => 1,
+ 'svc_acct' => 1,
};
}
=item size - Size for text fields
+=item validation - (optional) Validate optionvalue using the given object method, such as ut_textn, ut_email
+
=item options - For checkbox-multiple and select, a list reference of available option values.
=item option_labels - For select, a hash reference of availble option values and labels.
0;
}
+=item will_send_invoice
+
+Action classes may define a will_send_invoice method that returns true, indicating
+that this action is sending out an invoice.
+
+=cut
+
+#default
+sub will_send_invoice {
+ 0;
+}
+
=item do_action CUSTOMER_EVENT_OBJECT
Action classes must define an action method. This method is triggered if
}
+=item cust_pkg OBJECT
+
+Return the package object (L<FS::cust_pkg>) associated with the provided
+object. The object must be either a service (L<FS::svc_Common>) or a
+package.
+
+=cut
+
+sub cust_pkg {
+ my( $self, $object ) = @_;
+ $object->isa('FS::cust_pkg') ? $object :
+ $object->isa('FS::svc_Common') ? $object->cust_svc->cust_pkg :
+ undef;
+}
+
=item option_label OPTIONNAME
Returns the label for the specified option name.