summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2011-06-21 22:14:20 +0000
committerivan <ivan>2011-06-21 22:14:20 +0000
commit783eefa4a70dd88dd13ffd73c4e23361288628f0 (patch)
treead36fdefba3ab64774727d2c0671b93e04c32c5d /FS
parentfb8915cce4be9520c00cc53c659e34abfb6172e1 (diff)
rework suspension delays, RT#6956
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_event/Condition/pkg_dundate.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/FS/FS/part_event/Condition/pkg_dundate.pm b/FS/FS/part_event/Condition/pkg_dundate.pm
index 08b4e0abc..f25db2ae8 100644
--- a/FS/FS/part_event/Condition/pkg_dundate.pm
+++ b/FS/FS/part_event/Condition/pkg_dundate.pm
@@ -23,10 +23,10 @@ sub condition {
}
-#sub condition_sql {
-# my( $self, $table ) = @_;
-#
-# 'true';
-#}
+sub condition_sql {
+ my( $class, $table, %opt ) = @_;
+ return 'true' unless $table eq 'cust_pkg';
+ "COALESCE($table.dundate,0) <= ". $opt{'time'};
+}
1;