projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add disable ability to conditions & disable cust_bill_has_service, so the condition...
[freeside.git]
/
FS
/
FS
/
part_event
/
Condition.pm
diff --git
a/FS/FS/part_event/Condition.pm
b/FS/FS/part_event/Condition.pm
index
268b9e6
..
3c0904c
100644
(file)
--- a/
FS/FS/part_event/Condition.pm
+++ b/
FS/FS/part_event/Condition.pm
@@
-125,6
+125,8
@@
Available additional arguments:
$time = $opt{'time'}; #use this instead of time or $^T
$time = $opt{'time'}; #use this instead of time or $^T
+ $cust_event = $opt{'cust_event'}; #to retreive the cust_event object being tested
+
Return a true value if the condition has been met, and a false value if it has
not.
Return a true value if the condition has been met, and a false value if it has
not.
@@
-150,6
+152,17
@@
sub condition_sql {
'true';
}
'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
=item implicit_flag
This is used internally by the I<once> and I<balance> conditions. You probably