X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FCondition%2Fsignupdate_age.pm;h=0cfe55063d77fe228b8a6a6b8db3d39fee8c2a06;hb=faa774764df03c6f3280177f6adfcd2214995a13;hp=0c78b4c1078375e8b3adfcee04b7b992d9ecfcad;hpb=fa0223015fe6c03491b1d0d43524e03ac5fdb899;p=freeside.git 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; }