summaryrefslogtreecommitdiff
path: root/FS/FS/part_event/Condition/pkg_age.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/part_event/Condition/pkg_age.pm')
-rw-r--r--FS/FS/part_event/Condition/pkg_age.pm16
1 files changed, 4 insertions, 12 deletions
diff --git a/FS/FS/part_event/Condition/pkg_age.pm b/FS/FS/part_event/Condition/pkg_age.pm
index 4a8538780..8b3b4c971 100644
--- a/FS/FS/part_event/Condition/pkg_age.pm
+++ b/FS/FS/part_event/Condition/pkg_age.pm
@@ -49,18 +49,10 @@ sub condition {
}
-sub condition_sql {
- my( $class, $table, %opt ) = @_;
- my $age = $class->condition_sql_option_age_from('age', $opt{'time'});
- my $field = $class->condition_sql_option('field');
-#amazingly, this is actually faster
- my $sql = '( CASE';
- foreach( qw(setup last_bill bill adjourn susp expire cancel) ) {
- $sql .= " WHEN $field = '$_' THEN (cust_pkg.$_ IS NOT NULL AND cust_pkg.$_ <= $age)";
- }
- $sql .= ' END )';
- return $sql;
-}
+#XXX write me for efficiency
+#sub condition_sql {
+#
+#}
1;