diff options
author | ivan <ivan> | 2010-11-19 21:26:28 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-11-19 21:26:28 +0000 |
commit | 27770f99a60f73ef908911192dd0140c28b87abd (patch) | |
tree | 98c62c9f929d6e897d44133887126fa94eccf4ea | |
parent | 43ceecf597f1545318b45b0503672bfd592d1c88 (diff) |
fix late fees being applied a month late?, RT#10547
-rw-r--r-- | FS/FS/part_event/Condition/cust_bill_age.pm | 4 |
1 files 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 { |