fix late fees being applied a month late?, RT#10547
[freeside.git] / FS / FS / part_event / Condition / cust_bill_age.pm
index f343673..2295e02 100644 (file)
@@ -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 {