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