X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FCondition%2Fpkg_dundate.pm;h=f25db2ae84f73407a7fdb63050e547c7f17892cf;hp=08b4e0abca19410f04cdcb6ed6c81dd9863427ae;hb=783eefa4a70dd88dd13ffd73c4e23361288628f0;hpb=fb8915cce4be9520c00cc53c659e34abfb6172e1 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;