From: ivan Date: Fri, 19 Nov 2010 21:26:28 +0000 (+0000) Subject: fix late fees being applied a month late?, RT#10547 X-Git-Tag: freeside_2_1_2~252 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=27770f99a60f73ef908911192dd0140c28b87abd;p=freeside.git fix late fees being applied a month late?, RT#10547 --- 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 {