projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
965a053
)
proper fix for signupdate_age that works in customer context too, RT#31213
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 12 Dec 2014 23:37:24 +0000
(15:37 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 12 Dec 2014 23:37:24 +0000
(15:37 -0800)
FS/FS/part_event/Condition/signupdate_age.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_event/Condition/signupdate_age.pm
b/FS/FS/part_event/Condition/signupdate_age.pm
index
0c78b4c
..
0cfe550
100644
(file)
--- 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 {
}
sub condition {
- my( $self, $
cust_bill
, %opt ) = @_;
+ my( $self, $
object
, %opt ) = @_;
my $age = $self->option_age_from('age', $opt{'time'} );
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;
}
( $cust_main->signupdate - 60 ) <= $age;
}