summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-12-12 15:37:20 -0800
committerIvan Kohler <ivan@freeside.biz>2014-12-12 15:37:20 -0800
commitf48943ca9b3d280919d5e2d4cb6880ea8f095d7b (patch)
tree9beff1da291113a82a5459e4279fd53faf678a03
parent45ee8d3260326777619cb0b49583182ede66df37 (diff)
proper fix for signupdate_age that works in customer context too, RT#31213
-rw-r--r--FS/FS/part_event/Condition/signupdate_age.pm4
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;
}