diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-12-12 15:37:24 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-12-12 15:37:24 -0800 |
commit | d8230051d701b0e6105b7196a328dfaac980609b (patch) | |
tree | e3f48181a4d72f90fa72301ca34faa716fde7059 | |
parent | 965a053f2a74114c605b50bfefd0dcc168fb1bd5 (diff) |
proper fix for signupdate_age that works in customer context too, RT#31213
-rw-r--r-- | FS/FS/part_event/Condition/signupdate_age.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_event/Condition/signupdate_age.pm b/FS/FS/part_event/Condition/signupdate_age.pm index 0c78b4c10..0cfe55063 100644 --- a/FS/FS/part_event/Condition/signupdate_age.pm +++ b/FS/FS/part_event/Condition/signupdate_age.pm @@ -14,11 +14,11 @@ sub option_fields { } sub condition { - my( $self, $cust_bill, %opt ) = @_; + my( $self, $object, %opt ) = @_; my $age = $self->option_age_from('age', $opt{'time'} ); - my $cust_main = $cust_bill->cust_main; + my $cust_main = $self->cust_main($object); ( $cust_main->signupdate - 60 ) <= $age; } |