add disable ability to conditions & disable cust_bill_has_service, so the condition...
[freeside.git] / FS / FS / part_event / Condition.pm
index 0b9d579..3c0904c 100644 (file)
@@ -152,6 +152,17 @@ sub condition_sql {
   'true';
 }
 
+=item disabled
+
+Condition classes may optionally define a disabled method.  Returning a true
+value disbles the condition entirely.
+
+=cut
+
+sub disabled {
+  0;
+}
+
 =item implicit_flag
 
 This is used internally by the I<once> and I<balance> conditions.  You probably