X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FCondition%2Fcust_bill_age.pm;h=2295e026de37d5bff84ecac0d0f7372ee9426ab9;hb=546f156e3b10675045dadd5ee058a7cb4ed5cdc4;hp=f34367320be71feeee1ac1e7db6939b876ffcf61;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git diff --git a/FS/FS/part_event/Condition/cust_bill_age.pm b/FS/FS/part_event/Condition/cust_bill_age.pm index f34367320..2295e026d 100644 --- a/FS/FS/part_event/Condition/cust_bill_age.pm +++ b/FS/FS/part_event/Condition/cust_bill_age.pm @@ -23,7 +23,7 @@ sub condition { my $age = $self->option_age_from('age', $opt{'time'} ); - $cust_bill->_date <= $age; + ( $cust_bill->_date - 60 ) <= $age; } @@ -32,7 +32,7 @@ sub condition_sql { my $age = $class->condition_sql_option_age_from('age', $opt{'time'} ); - "cust_bill._date <= $age"; + "( cust_bill._date - 60 ) <= $age"; } sub order_sql {