From 14ce41081337ded937c6264f43f23923e5574018 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 19 Nov 2010 21:26:27 +0000 Subject: [PATCH] fix late fees being applied a month late?, RT#10547 --- FS/FS/part_event/Condition/cust_bill_age.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.11.0